*! _wbod_tmpfile1 <8 Jul 2020 : 14:01:00>                 by João Pedro Azevedo
*                 auto generated and updated using _update_countrymetadata.ado 
  
 program define _wbod_tmpfile1 
  
     syntax , match(varname) [  countrycode_iso2 countryname region region_iso2 regionname  ] 
  
 ******************  Values: countrycode_iso2 ****************** 
  
 qui if ("`countrycode_iso2'" == "countrycode_iso2") {      
  
         cap: gen countrycode_iso2 = ""  
         cap: replace countrycode_iso2 = "AW"     if `match' == "ABW"  
         cap: replace countrycode_iso2 = "AF"     if `match' == "AFG"  
         cap: replace countrycode_iso2 = "A9"     if `match' == "AFR"  
         cap: replace countrycode_iso2 = "AO"     if `match' == "AGO"  
         cap: replace countrycode_iso2 = "AL"     if `match' == "ALB"  
         cap: replace countrycode_iso2 = "AD"     if `match' == "AND"  
         cap: replace countrycode_iso2 = "L5"     if `match' == "ANR"  
         cap: replace countrycode_iso2 = "1A"     if `match' == "ARB"  
         cap: replace countrycode_iso2 = "AE"     if `match' == "ARE"  
         cap: replace countrycode_iso2 = "AR"     if `match' == "ARG"  
         cap: replace countrycode_iso2 = "AM"     if `match' == "ARM"  
         cap: replace countrycode_iso2 = "AS"     if `match' == "ASM"  
         cap: replace countrycode_iso2 = "AG"     if `match' == "ATG"  
         cap: replace countrycode_iso2 = "AU"     if `match' == "AUS"  
         cap: replace countrycode_iso2 = "AT"     if `match' == "AUT"  
         cap: replace countrycode_iso2 = "AZ"     if `match' == "AZE"  
         cap: replace countrycode_iso2 = "BI"     if `match' == "BDI"  
         cap: replace countrycode_iso2 = "B4"     if `match' == "BEA"  
         cap: replace countrycode_iso2 = "B7"     if `match' == "BEC"  
         cap: replace countrycode_iso2 = "BE"     if `match' == "BEL"  
         cap: replace countrycode_iso2 = "BJ"     if `match' == "BEN"  
         cap: replace countrycode_iso2 = "BF"     if `match' == "BFA"  
         cap: replace countrycode_iso2 = "BD"     if `match' == "BGD"  
         cap: replace countrycode_iso2 = "BG"     if `match' == "BGR"  
         cap: replace countrycode_iso2 = "B1"     if `match' == "BHI"  
         cap: replace countrycode_iso2 = "BH"     if `match' == "BHR"  
         cap: replace countrycode_iso2 = "BS"     if `match' == "BHS"  
         cap: replace countrycode_iso2 = "BA"     if `match' == "BIH"  
         cap: replace countrycode_iso2 = "B2"     if `match' == "BLA"  
         cap: replace countrycode_iso2 = "BY"     if `match' == "BLR"  
         cap: replace countrycode_iso2 = "BZ"     if `match' == "BLZ"  
         cap: replace countrycode_iso2 = "B3"     if `match' == "BMN"  
         cap: replace countrycode_iso2 = "BM"     if `match' == "BMU"  
         cap: replace countrycode_iso2 = "BO"     if `match' == "BOL"  
         cap: replace countrycode_iso2 = "BR"     if `match' == "BRA"  
         cap: replace countrycode_iso2 = "BB"     if `match' == "BRB"  
         cap: replace countrycode_iso2 = "BN"     if `match' == "BRN"  
         cap: replace countrycode_iso2 = "B6"     if `match' == "BSS"  
         cap: replace countrycode_iso2 = "BT"     if `match' == "BTN"  
         cap: replace countrycode_iso2 = "BW"     if `match' == "BWA"  
         cap: replace countrycode_iso2 = "C9"     if `match' == "CAA"  
         cap: replace countrycode_iso2 = "CF"     if `match' == "CAF"  
         cap: replace countrycode_iso2 = "CA"     if `match' == "CAN"  
         cap: replace countrycode_iso2 = "C4"     if `match' == "CEA"  
         cap: replace countrycode_iso2 = "B8"     if `match' == "CEB"  
         cap: replace countrycode_iso2 = "C5"     if `match' == "CEU"  
         cap: replace countrycode_iso2 = "CH"     if `match' == "CHE"  
         cap: replace countrycode_iso2 = "JG"     if `match' == "CHI"  
         cap: replace countrycode_iso2 = "CL"     if `match' == "CHL"  
         cap: replace countrycode_iso2 = "CN"     if `match' == "CHN"  
         cap: replace countrycode_iso2 = "CI"     if `match' == "CIV"  
         cap: replace countrycode_iso2 = "C6"     if `match' == "CLA"  
         cap: replace countrycode_iso2 = "C7"     if `match' == "CME"  
         cap: replace countrycode_iso2 = "CM"     if `match' == "CMR"  
         cap: replace countrycode_iso2 = "CD"     if `match' == "COD"  
         cap: replace countrycode_iso2 = "CG"     if `match' == "COG"  
         cap: replace countrycode_iso2 = "CO"     if `match' == "COL"  
         cap: replace countrycode_iso2 = "KM"     if `match' == "COM"  
         cap: replace countrycode_iso2 = "CV"     if `match' == "CPV"  
         cap: replace countrycode_iso2 = "CR"     if `match' == "CRI"  
         cap: replace countrycode_iso2 = "C8"     if `match' == "CSA"  
         cap: replace countrycode_iso2 = "S3"     if `match' == "CSS"  
         cap: replace countrycode_iso2 = "CU"     if `match' == "CUB"  
         cap: replace countrycode_iso2 = "CW"     if `match' == "CUW"  
         cap: replace countrycode_iso2 = "KY"     if `match' == "CYM"  
         cap: replace countrycode_iso2 = "CY"     if `match' == "CYP"  
         cap: replace countrycode_iso2 = "CZ"     if `match' == "CZE"  
         cap: replace countrycode_iso2 = "D4"     if `match' == "DEA"  
         cap: replace countrycode_iso2 = "D7"     if `match' == "DEC"  
         cap: replace countrycode_iso2 = "DE"     if `match' == "DEU"  
         cap: replace countrycode_iso2 = "D8"     if `match' == "DFS"  
         cap: replace countrycode_iso2 = "DJ"     if `match' == "DJI"  
         cap: replace countrycode_iso2 = "D2"     if `match' == "DLA"  
         cap: replace countrycode_iso2 = "DM"     if `match' == "DMA"  
         cap: replace countrycode_iso2 = "D3"     if `match' == "DMN"  
         cap: replace countrycode_iso2 = "D9"     if `match' == "DNF"  
         cap: replace countrycode_iso2 = "DK"     if `match' == "DNK"  
         cap: replace countrycode_iso2 = "N6"     if `match' == "DNS"  
         cap: replace countrycode_iso2 = "DO"     if `match' == "DOM"  
         cap: replace countrycode_iso2 = "D5"     if `match' == "DSA"  
         cap: replace countrycode_iso2 = "F6"     if `match' == "DSF"  
         cap: replace countrycode_iso2 = "D6"     if `match' == "DSS"  
         cap: replace countrycode_iso2 = "6D"     if `match' == "DXS"  
         cap: replace countrycode_iso2 = "DZ"     if `match' == "DZA"  
         cap: replace countrycode_iso2 = "4E"     if `match' == "EAP"  
         cap: replace countrycode_iso2 = "V2"     if `match' == "EAR"  
         cap: replace countrycode_iso2 = "Z4"     if `match' == "EAS"  
         cap: replace countrycode_iso2 = "7E"     if `match' == "ECA"  
         cap: replace countrycode_iso2 = "Z7"     if `match' == "ECS"  
         cap: replace countrycode_iso2 = "EC"     if `match' == "ECU"  
         cap: replace countrycode_iso2 = "EG"     if `match' == "EGY"  
         cap: replace countrycode_iso2 = "XC"     if `match' == "EMU"  
         cap: replace countrycode_iso2 = "ER"     if `match' == "ERI"  
         cap: replace countrycode_iso2 = "ES"     if `match' == "ESP"  
         cap: replace countrycode_iso2 = "EE"     if `match' == "EST"  
         cap: replace countrycode_iso2 = "ET"     if `match' == "ETH"  
         cap: replace countrycode_iso2 = "EU"     if `match' == "EUU"  
         cap: replace countrycode_iso2 = "F1"     if `match' == "FCS"  
         cap: replace countrycode_iso2 = "FI"     if `match' == "FIN"  
         cap: replace countrycode_iso2 = "FJ"     if `match' == "FJI"  
         cap: replace countrycode_iso2 = "FR"     if `match' == "FRA"  
         cap: replace countrycode_iso2 = "FO"     if `match' == "FRO"  
         cap: replace countrycode_iso2 = "FM"     if `match' == "FSM"  
         cap: replace countrycode_iso2 = "6F"     if `match' == "FXS"  
         cap: replace countrycode_iso2 = "GA"     if `match' == "GAB"  
         cap: replace countrycode_iso2 = "GB"     if `match' == "GBR"  
         cap: replace countrycode_iso2 = "GE"     if `match' == "GEO"  
         cap: replace countrycode_iso2 = "GH"     if `match' == "GHA"  
         cap: replace countrycode_iso2 = "GI"     if `match' == "GIB"  
         cap: replace countrycode_iso2 = "GN"     if `match' == "GIN"  
         cap: replace countrycode_iso2 = "GM"     if `match' == "GMB"  
         cap: replace countrycode_iso2 = "GW"     if `match' == "GNB"  
         cap: replace countrycode_iso2 = "GQ"     if `match' == "GNQ"  
         cap: replace countrycode_iso2 = "GR"     if `match' == "GRC"  
         cap: replace countrycode_iso2 = "GD"     if `match' == "GRD"  
         cap: replace countrycode_iso2 = "GL"     if `match' == "GRL"  
         cap: replace countrycode_iso2 = "GT"     if `match' == "GTM"  
         cap: replace countrycode_iso2 = "GU"     if `match' == "GUM"  
         cap: replace countrycode_iso2 = "GY"     if `match' == "GUY"  
         cap: replace countrycode_iso2 = "XD"     if `match' == "HIC"  
         cap: replace countrycode_iso2 = "HK"     if `match' == "HKG"  
         cap: replace countrycode_iso2 = "HN"     if `match' == "HND"  
         cap: replace countrycode_iso2 = "XE"     if `match' == "HPC"  
         cap: replace countrycode_iso2 = "HR"     if `match' == "HRV"  
         cap: replace countrycode_iso2 = "HT"     if `match' == "HTI"  
         cap: replace countrycode_iso2 = "HU"     if `match' == "HUN"  
         cap: replace countrycode_iso2 = "ZB"     if `match' == "IBB"  
         cap: replace countrycode_iso2 = "XF"     if `match' == "IBD"  
         cap: replace countrycode_iso2 = "ZT"     if `match' == "IBT"  
         cap: replace countrycode_iso2 = "XG"     if `match' == "IDA"  
         cap: replace countrycode_iso2 = "XH"     if `match' == "IDB"  
         cap: replace countrycode_iso2 = "ID"     if `match' == "IDN"  
         cap: replace countrycode_iso2 = "XI"     if `match' == "IDX"  
         cap: replace countrycode_iso2 = "IM"     if `match' == "IMN"  
         cap: replace countrycode_iso2 = "IN"     if `match' == "IND"  
         cap: replace countrycode_iso2 = "XY"     if `match' == "INX"  
         cap: replace countrycode_iso2 = "IE"     if `match' == "IRL"  
         cap: replace countrycode_iso2 = "IR"     if `match' == "IRN"  
         cap: replace countrycode_iso2 = "IQ"     if `match' == "IRQ"  
         cap: replace countrycode_iso2 = "IS"     if `match' == "ISL"  
         cap: replace countrycode_iso2 = "IL"     if `match' == "ISR"  
         cap: replace countrycode_iso2 = "IT"     if `match' == "ITA"  
         cap: replace countrycode_iso2 = "JM"     if `match' == "JAM"  
         cap: replace countrycode_iso2 = "JO"     if `match' == "JOR"  
         cap: replace countrycode_iso2 = "JP"     if `match' == "JPN"  
         cap: replace countrycode_iso2 = "KZ"     if `match' == "KAZ"  
         cap: replace countrycode_iso2 = "KE"     if `match' == "KEN"  
         cap: replace countrycode_iso2 = "KG"     if `match' == "KGZ"  
         cap: replace countrycode_iso2 = "KH"     if `match' == "KHM"  
         cap: replace countrycode_iso2 = "KI"     if `match' == "KIR"  
         cap: replace countrycode_iso2 = "KN"     if `match' == "KNA"  
         cap: replace countrycode_iso2 = "KR"     if `match' == "KOR"  
         cap: replace countrycode_iso2 = "KW"     if `match' == "KWT"  
         cap: replace countrycode_iso2 = "XJ"     if `match' == "LAC"  
         cap: replace countrycode_iso2 = "LA"     if `match' == "LAO"  
         cap: replace countrycode_iso2 = "LB"     if `match' == "LBN"  
         cap: replace countrycode_iso2 = "LR"     if `match' == "LBR"  
         cap: replace countrycode_iso2 = "LY"     if `match' == "LBY"  
         cap: replace countrycode_iso2 = "LC"     if `match' == "LCA"  
         cap: replace countrycode_iso2 = "ZJ"     if `match' == "LCN"  
         cap: replace countrycode_iso2 = "L4"     if `match' == "LCR"  
         cap: replace countrycode_iso2 = "XL"     if `match' == "LDC"  
         cap: replace countrycode_iso2 = "XM"     if `match' == "LIC"  
         cap: replace countrycode_iso2 = "LI"     if `match' == "LIE"  
         cap: replace countrycode_iso2 = "LK"     if `match' == "LKA"  
         cap: replace countrycode_iso2 = "XN"     if `match' == "LMC"  
         cap: replace countrycode_iso2 = "XO"     if `match' == "LMY"  
         cap: replace countrycode_iso2 = "LS"     if `match' == "LSO"  
         cap: replace countrycode_iso2 = "V3"     if `match' == "LTE"  
         cap: replace countrycode_iso2 = "LT"     if `match' == "LTU"  
         cap: replace countrycode_iso2 = "LU"     if `match' == "LUX"  
         cap: replace countrycode_iso2 = "LV"     if `match' == "LVA"  
         cap: replace countrycode_iso2 = "MO"     if `match' == "MAC"  
         cap: replace countrycode_iso2 = "MF"     if `match' == "MAF"  
         cap: replace countrycode_iso2 = "MA"     if `match' == "MAR"  
         cap: replace countrycode_iso2 = "L6"     if `match' == "MCA"  
         cap: replace countrycode_iso2 = "MC"     if `match' == "MCO"  
         cap: replace countrycode_iso2 = "MD"     if `match' == "MDA"  
         cap: replace countrycode_iso2 = "M1"     if `match' == "MDE"  
         cap: replace countrycode_iso2 = "MG"     if `match' == "MDG"  
         cap: replace countrycode_iso2 = "MV"     if `match' == "MDV"  
         cap: replace countrycode_iso2 = "ZQ"     if `match' == "MEA"  
         cap: replace countrycode_iso2 = "MX"     if `match' == "MEX"  
         cap: replace countrycode_iso2 = "MH"     if `match' == "MHL"  
         cap: replace countrycode_iso2 = "XP"     if `match' == "MIC"  
         cap: replace countrycode_iso2 = "MK"     if `match' == "MKD"  
         cap: replace countrycode_iso2 = "ML"     if `match' == "MLI"  
         cap: replace countrycode_iso2 = "MT"     if `match' == "MLT"  
         cap: replace countrycode_iso2 = "MM"     if `match' == "MMR"  
         cap: replace countrycode_iso2 = "XQ"     if `match' == "MNA"  
         cap: replace countrycode_iso2 = "ME"     if `match' == "MNE"  
         cap: replace countrycode_iso2 = "MN"     if `match' == "MNG"  
         cap: replace countrycode_iso2 = "MP"     if `match' == "MNP"  
         cap: replace countrycode_iso2 = "MZ"     if `match' == "MOZ"  
         cap: replace countrycode_iso2 = "MR"     if `match' == "MRT"  
         cap: replace countrycode_iso2 = "MU"     if `match' == "MUS"  
         cap: replace countrycode_iso2 = "MW"     if `match' == "MWI"  
         cap: replace countrycode_iso2 = "MY"     if `match' == "MYS"  
         cap: replace countrycode_iso2 = "XU"     if `match' == "NAC"  
         cap: replace countrycode_iso2 = "M2"     if `match' == "NAF"  
         cap: replace countrycode_iso2 = "NA"     if `match' == "NAM"  
         cap: replace countrycode_iso2 = "NC"     if `match' == "NCL"  
         cap: replace countrycode_iso2 = "NE"     if `match' == "NER"  
         cap: replace countrycode_iso2 = "NG"     if `match' == "NGA"  
         cap: replace countrycode_iso2 = "NI"     if `match' == "NIC"  
         cap: replace countrycode_iso2 = "NL"     if `match' == "NLD"  
         cap: replace countrycode_iso2 = "6L"     if `match' == "NLS"  
         cap: replace countrycode_iso2 = "NO"     if `match' == "NOR"  
         cap: replace countrycode_iso2 = "NP"     if `match' == "NPL"  
         cap: replace countrycode_iso2 = "6X"     if `match' == "NRS"  
         cap: replace countrycode_iso2 = "NR"     if `match' == "NRU"  
         cap: replace countrycode_iso2 = "6N"     if `match' == "NXS"  
         cap: replace countrycode_iso2 = "NZ"     if `match' == "NZL"  
         cap: replace countrycode_iso2 = "OE"     if `match' == "OED"  
         cap: replace countrycode_iso2 = "OM"     if `match' == "OMN"  
         cap: replace countrycode_iso2 = "S4"     if `match' == "OSS"  
         cap: replace countrycode_iso2 = "PK"     if `match' == "PAK"  
         cap: replace countrycode_iso2 = "PA"     if `match' == "PAN"  
         cap: replace countrycode_iso2 = "PE"     if `match' == "PER"  
         cap: replace countrycode_iso2 = "PH"     if `match' == "PHL"  
         cap: replace countrycode_iso2 = "PW"     if `match' == "PLW"  
         cap: replace countrycode_iso2 = "PG"     if `match' == "PNG"  
         cap: replace countrycode_iso2 = "PL"     if `match' == "POL"  
         cap: replace countrycode_iso2 = "V1"     if `match' == "PRE"  
         cap: replace countrycode_iso2 = "PR"     if `match' == "PRI"  
         cap: replace countrycode_iso2 = "KP"     if `match' == "PRK"  
         cap: replace countrycode_iso2 = "PT"     if `match' == "PRT"  
         cap: replace countrycode_iso2 = "PY"     if `match' == "PRY"  
         cap: replace countrycode_iso2 = "PS"     if `match' == "PSE"  
         cap: replace countrycode_iso2 = "S2"     if `match' == "PSS"  
         cap: replace countrycode_iso2 = "V4"     if `match' == "PST"  
         cap: replace countrycode_iso2 = "PF"     if `match' == "PYF"  
         cap: replace countrycode_iso2 = "QA"     if `match' == "QAT"  
         cap: replace countrycode_iso2 = "RO"     if `match' == "ROU"  
         cap: replace countrycode_iso2 = "R6"     if `match' == "RRS"  
         cap: replace countrycode_iso2 = "O6"     if `match' == "RSO"  
         cap: replace countrycode_iso2 = "RU"     if `match' == "RUS"  
         cap: replace countrycode_iso2 = "RW"     if `match' == "RWA"  
         cap: replace countrycode_iso2 = "8S"     if `match' == "SAS"  
         cap: replace countrycode_iso2 = "SA"     if `match' == "SAU"  
         cap: replace countrycode_iso2 = "L7"     if `match' == "SCE"  
         cap: replace countrycode_iso2 = "SD"     if `match' == "SDN"  
         cap: replace countrycode_iso2 = "SN"     if `match' == "SEN"  
         cap: replace countrycode_iso2 = "SG"     if `match' == "SGP"  
         cap: replace countrycode_iso2 = "SB"     if `match' == "SLB"  
         cap: replace countrycode_iso2 = "SL"     if `match' == "SLE"  
         cap: replace countrycode_iso2 = "SV"     if `match' == "SLV"  
         cap: replace countrycode_iso2 = "SM"     if `match' == "SMR"  
         cap: replace countrycode_iso2 = "SO"     if `match' == "SOM"  
         cap: replace countrycode_iso2 = "RS"     if `match' == "SRB"  
         cap: replace countrycode_iso2 = "ZF"     if `match' == "SSA"  
         cap: replace countrycode_iso2 = "SS"     if `match' == "SSD"  
         cap: replace countrycode_iso2 = "ZG"     if `match' == "SSF"  
         cap: replace countrycode_iso2 = "S1"     if `match' == "SST"  
         cap: replace countrycode_iso2 = "ST"     if `match' == "STP"  
         cap: replace countrycode_iso2 = "SR"     if `match' == "SUR"  
         cap: replace countrycode_iso2 = "SK"     if `match' == "SVK"  
         cap: replace countrycode_iso2 = "SI"     if `match' == "SVN"  
         cap: replace countrycode_iso2 = "SE"     if `match' == "SWE"  
         cap: replace countrycode_iso2 = "SZ"     if `match' == "SWZ"  
         cap: replace countrycode_iso2 = "SX"     if `match' == "SXM"  
         cap: replace countrycode_iso2 = "A4"     if `match' == "SXZ"  
         cap: replace countrycode_iso2 = "SC"     if `match' == "SYC"  
         cap: replace countrycode_iso2 = "SY"     if `match' == "SYR"  
         cap: replace countrycode_iso2 = "TC"     if `match' == "TCA"  
         cap: replace countrycode_iso2 = "TD"     if `match' == "TCD"  
         cap: replace countrycode_iso2 = "T4"     if `match' == "TEA"  
         cap: replace countrycode_iso2 = "T7"     if `match' == "TEC"  
         cap: replace countrycode_iso2 = "TG"     if `match' == "TGO"  
         cap: replace countrycode_iso2 = "TH"     if `match' == "THA"  
         cap: replace countrycode_iso2 = "TJ"     if `match' == "TJK"  
         cap: replace countrycode_iso2 = "TM"     if `match' == "TKM"  
         cap: replace countrycode_iso2 = "T2"     if `match' == "TLA"  
         cap: replace countrycode_iso2 = "TL"     if `match' == "TLS"  
         cap: replace countrycode_iso2 = "T3"     if `match' == "TMN"  
         cap: replace countrycode_iso2 = "TO"     if `match' == "TON"  
         cap: replace countrycode_iso2 = "T5"     if `match' == "TSA"  
         cap: replace countrycode_iso2 = "T6"     if `match' == "TSS"  
         cap: replace countrycode_iso2 = "TT"     if `match' == "TTO"  
         cap: replace countrycode_iso2 = "TN"     if `match' == "TUN"  
         cap: replace countrycode_iso2 = "TR"     if `match' == "TUR"  
         cap: replace countrycode_iso2 = "TV"     if `match' == "TUV"  
         cap: replace countrycode_iso2 = "TW"     if `match' == "TWN"  
         cap: replace countrycode_iso2 = "TZ"     if `match' == "TZA"  
         cap: replace countrycode_iso2 = "UG"     if `match' == "UGA"  
         cap: replace countrycode_iso2 = "UA"     if `match' == "UKR"  
         cap: replace countrycode_iso2 = "XT"     if `match' == "UMC"  
         cap: replace countrycode_iso2 = "UY"     if `match' == "URY"  
         cap: replace countrycode_iso2 = "US"     if `match' == "USA"  
         cap: replace countrycode_iso2 = "UZ"     if `match' == "UZB"  
         cap: replace countrycode_iso2 = "VC"     if `match' == "VCT"  
         cap: replace countrycode_iso2 = "VE"     if `match' == "VEN"  
         cap: replace countrycode_iso2 = "VG"     if `match' == "VGB"  
         cap: replace countrycode_iso2 = "VI"     if `match' == "VIR"  
         cap: replace countrycode_iso2 = "VN"     if `match' == "VNM"  
         cap: replace countrycode_iso2 = "VU"     if `match' == "VUT"  
         cap: replace countrycode_iso2 = "1W"     if `match' == "WLD"  
         cap: replace countrycode_iso2 = "WS"     if `match' == "WSM"  
         cap: replace countrycode_iso2 = "XK"     if `match' == "XKX"  
         cap: replace countrycode_iso2 = "A5"     if `match' == "XZN"  
         cap: replace countrycode_iso2 = "YE"     if `match' == "YEM"  
         cap: replace countrycode_iso2 = "ZA"     if `match' == "ZAF"  
         cap: replace countrycode_iso2 = "ZM"     if `match' == "ZMB"  
         cap: replace countrycode_iso2 = "ZW"     if `match' == "ZWE"  
  
******************  Lable: countrycode_iso2 ******************
  
     lab var countrycode_iso2    "Country Code (ISO 2 digits)" 
 }        
  
 ****************************************************** 
  
 ******************  Values: countryname ****************** 
  
 qui if ("`countryname'" == "countryname") {      
  
         cap: gen countryname = ""  
         cap: replace countryname = "Aruba"     if `match' == "ABW"  
         cap: replace countryname = "Afghanistan"     if `match' == "AFG"  
         cap: replace countryname = "Africa"     if `match' == "AFR"  
         cap: replace countryname = "Angola"     if `match' == "AGO"  
         cap: replace countryname = "Albania"     if `match' == "ALB"  
         cap: replace countryname = "Andorra"     if `match' == "AND"  
         cap: replace countryname = "Andean Region"     if `match' == "ANR"  
         cap: replace countryname = "Arab World"     if `match' == "ARB"  
         cap: replace countryname = "United Arab Emirates"     if `match' == "ARE"  
         cap: replace countryname = "Argentina"     if `match' == "ARG"  
         cap: replace countryname = "Armenia"     if `match' == "ARM"  
         cap: replace countryname = "American Samoa"     if `match' == "ASM"  
         cap: replace countryname = "Antigua and Barbuda"     if `match' == "ATG"  
         cap: replace countryname = "Australia"     if `match' == "AUS"  
         cap: replace countryname = "Austria"     if `match' == "AUT"  
         cap: replace countryname = "Azerbaijan"     if `match' == "AZE"  
         cap: replace countryname = "Burundi"     if `match' == "BDI"  
         cap: replace countryname = "East Asia and Pacific (IBRD-only countries)"     if `match' == "BEA"  
         cap: replace countryname = "Europe and Central Asia (IBRD-only countries)"     if `match' == "BEC"  
         cap: replace countryname = "Belgium"     if `match' == "BEL"  
         cap: replace countryname = "Benin"     if `match' == "BEN"  
         cap: replace countryname = "Burkina Faso"     if `match' == "BFA"  
         cap: replace countryname = "Bangladesh"     if `match' == "BGD"  
         cap: replace countryname = "Bulgaria"     if `match' == "BGR"  
         cap: replace countryname = "IBRD countries classified as high income"     if `match' == "BHI"  
         cap: replace countryname = "Bahrain"     if `match' == "BHR"  
         cap: replace countryname = "Bahamas, The"     if `match' == "BHS"  
         cap: replace countryname = "Bosnia and Herzegovina"     if `match' == "BIH"  
         cap: replace countryname = "Latin America and the Caribbean (IBRD-only countries)"     if `match' == "BLA"  
         cap: replace countryname = "Belarus"     if `match' == "BLR"  
         cap: replace countryname = "Belize"     if `match' == "BLZ"  
         cap: replace countryname = "Middle East and North Africa (IBRD-only countries)"     if `match' == "BMN"  
         cap: replace countryname = "Bermuda"     if `match' == "BMU"  
         cap: replace countryname = "Bolivia"     if `match' == "BOL"  
         cap: replace countryname = "Brazil"     if `match' == "BRA"  
         cap: replace countryname = "Barbados"     if `match' == "BRB"  
         cap: replace countryname = "Brunei Darussalam"     if `match' == "BRN"  
         cap: replace countryname = "Sub-Saharan Africa (IBRD-only countries)"     if `match' == "BSS"  
         cap: replace countryname = "Bhutan"     if `match' == "BTN"  
         cap: replace countryname = "Botswana"     if `match' == "BWA"  
         cap: replace countryname = "Sub-Saharan Africa (IFC classification)"     if `match' == "CAA"  
         cap: replace countryname = "Central African Republic"     if `match' == "CAF"  
         cap: replace countryname = "Canada"     if `match' == "CAN"  
         cap: replace countryname = "East Asia and the Pacific (IFC classification)"     if `match' == "CEA"  
         cap: replace countryname = "Central Europe and the Baltics"     if `match' == "CEB"  
         cap: replace countryname = "Europe and Central Asia (IFC classification)"     if `match' == "CEU"  
         cap: replace countryname = "Switzerland"     if `match' == "CHE"  
         cap: replace countryname = "Channel Islands"     if `match' == "CHI"  
         cap: replace countryname = "Chile"     if `match' == "CHL"  
         cap: replace countryname = "China"     if `match' == "CHN"  
         cap: replace countryname = "Cote d'Ivoire"     if `match' == "CIV"  
         cap: replace countryname = "Latin America and the Caribbean (IFC classification)"     if `match' == "CLA"  
         cap: replace countryname = "Middle East and North Africa (IFC classification)"     if `match' == "CME"  
         cap: replace countryname = "Cameroon"     if `match' == "CMR"  
         cap: replace countryname = "Congo, Dem Rep"     if `match' == "COD"  
         cap: replace countryname = "Congo, Rep"     if `match' == "COG"  
         cap: replace countryname = "Colombia"     if `match' == "COL"  
         cap: replace countryname = "Comoros"     if `match' == "COM"  
         cap: replace countryname = "Cabo Verde"     if `match' == "CPV"  
         cap: replace countryname = "Costa Rica"     if `match' == "CRI"  
         cap: replace countryname = "South Asia (IFC classification)"     if `match' == "CSA"  
         cap: replace countryname = "Caribbean small states"     if `match' == "CSS"  
         cap: replace countryname = "Cuba"     if `match' == "CUB"  
         cap: replace countryname = "Curacao"     if `match' == "CUW"  
         cap: replace countryname = "Cayman Islands"     if `match' == "CYM"  
         cap: replace countryname = "Cyprus"     if `match' == "CYP"  
         cap: replace countryname = "Czech Republic"     if `match' == "CZE"  
         cap: replace countryname = "East Asia and Pacific (IDA-eligible countries)"     if `match' == "DEA"  
         cap: replace countryname = "Europe and Central Asia (IDA-eligible countries)"     if `match' == "DEC"  
         cap: replace countryname = "Germany"     if `match' == "DEU"  
         cap: replace countryname = "IDA countries classified as Fragile Situations"     if `match' == "DFS"  
         cap: replace countryname = "Djibouti"     if `match' == "DJI"  
         cap: replace countryname = "Latin America and the Caribbean (IDA-eligible countries)"     if `match' == "DLA"  
         cap: replace countryname = "Dominica"     if `match' == "DMA"  
         cap: replace countryname = "Middle East and North Africa (IDA-eligible countries)"     if `match' == "DMN"  
         cap: replace countryname = "IDA countries not classified as Fragile Situations"     if `match' == "DNF"  
         cap: replace countryname = "Denmark"     if `match' == "DNK"  
         cap: replace countryname = "IDA countries in Sub-Saharan Africa not classified as fragile situations"     if `match' == "DNS"  
         cap: replace countryname = "Dominican Republic"     if `match' == "DOM"  
         cap: replace countryname = "South Asia (IDA-eligible countries)"     if `match' == "DSA"  
         cap: replace countryname = "IDA countries in Sub-Saharan Africa classified as fragile situations"     if `match' == "DSF"  
         cap: replace countryname = "Sub-Saharan Africa (IDA-eligible countries)"     if `match' == "DSS"  
         cap: replace countryname = "IDA total, excluding Sub-Saharan Africa"     if `match' == "DXS"  
         cap: replace countryname = "Algeria"     if `match' == "DZA"  
         cap: replace countryname = "East Asia and Pacific (excluding high income)"     if `match' == "EAP"  
         cap: replace countryname = "Early-demographic dividend"     if `match' == "EAR"  
         cap: replace countryname = "East Asia and Pacific"     if `match' == "EAS"  
         cap: replace countryname = "Europe and Central Asia (excluding high income)"     if `match' == "ECA"  
         cap: replace countryname = "Europe and Central Asia"     if `match' == "ECS"  
         cap: replace countryname = "Ecuador"     if `match' == "ECU"  
         cap: replace countryname = "Egypt, Arab Rep"     if `match' == "EGY"  
         cap: replace countryname = "Euro area"     if `match' == "EMU"  
         cap: replace countryname = "Eritrea"     if `match' == "ERI"  
         cap: replace countryname = "Spain"     if `match' == "ESP"  
         cap: replace countryname = "Estonia"     if `match' == "EST"  
         cap: replace countryname = "Ethiopia"     if `match' == "ETH"  
         cap: replace countryname = "European Union"     if `match' == "EUU"  
         cap: replace countryname = "Fragile and conflict affected situations"     if `match' == "FCS"  
         cap: replace countryname = "Finland"     if `match' == "FIN"  
         cap: replace countryname = "Fiji"     if `match' == "FJI"  
         cap: replace countryname = "France"     if `match' == "FRA"  
         cap: replace countryname = "Faroe Islands"     if `match' == "FRO"  
         cap: replace countryname = "Micronesia, Fed Sts"     if `match' == "FSM"  
         cap: replace countryname = "IDA countries classified as fragile situations, excluding Sub-Saharan Africa"     if `match' == "FXS"  
         cap: replace countryname = "Gabon"     if `match' == "GAB"  
         cap: replace countryname = "United Kingdom"     if `match' == "GBR"  
         cap: replace countryname = "Georgia"     if `match' == "GEO"  
         cap: replace countryname = "Ghana"     if `match' == "GHA"  
         cap: replace countryname = "Gibraltar"     if `match' == "GIB"  
         cap: replace countryname = "Guinea"     if `match' == "GIN"  
         cap: replace countryname = "Gambia, The"     if `match' == "GMB"  
         cap: replace countryname = "Guinea-Bissau"     if `match' == "GNB"  
         cap: replace countryname = "Equatorial Guinea"     if `match' == "GNQ"  
         cap: replace countryname = "Greece"     if `match' == "GRC"  
         cap: replace countryname = "Grenada"     if `match' == "GRD"  
         cap: replace countryname = "Greenland"     if `match' == "GRL"  
         cap: replace countryname = "Guatemala"     if `match' == "GTM"  
         cap: replace countryname = "Guam"     if `match' == "GUM"  
         cap: replace countryname = "Guyana"     if `match' == "GUY"  
         cap: replace countryname = "High income"     if `match' == "HIC"  
         cap: replace countryname = "Hong Kong SAR, China"     if `match' == "HKG"  
         cap: replace countryname = "Honduras"     if `match' == "HND"  
         cap: replace countryname = "Heavily indebted poor countries (HIPC)"     if `match' == "HPC"  
         cap: replace countryname = "Croatia"     if `match' == "HRV"  
         cap: replace countryname = "Haiti"     if `match' == "HTI"  
         cap: replace countryname = "Hungary"     if `match' == "HUN"  
         cap: replace countryname = "IBRD, including blend"     if `match' == "IBB"  
         cap: replace countryname = "IBRD only"     if `match' == "IBD"  
         cap: replace countryname = "IDA and IBRD total"     if `match' == "IBT"  
         cap: replace countryname = "IDA total"     if `match' == "IDA"  
         cap: replace countryname = "IDA blend"     if `match' == "IDB"  
         cap: replace countryname = "Indonesia"     if `match' == "IDN"  
         cap: replace countryname = "IDA only"     if `match' == "IDX"  
         cap: replace countryname = "Isle of Man"     if `match' == "IMN"  
         cap: replace countryname = "India"     if `match' == "IND"  
         cap: replace countryname = "Not classified"     if `match' == "INX"  
         cap: replace countryname = "Ireland"     if `match' == "IRL"  
         cap: replace countryname = "Iran, Islamic Rep"     if `match' == "IRN"  
         cap: replace countryname = "Iraq"     if `match' == "IRQ"  
         cap: replace countryname = "Iceland"     if `match' == "ISL"  
         cap: replace countryname = "Israel"     if `match' == "ISR"  
         cap: replace countryname = "Italy"     if `match' == "ITA"  
         cap: replace countryname = "Jamaica"     if `match' == "JAM"  
         cap: replace countryname = "Jordan"     if `match' == "JOR"  
         cap: replace countryname = "Japan"     if `match' == "JPN"  
         cap: replace countryname = "Kazakhstan"     if `match' == "KAZ"  
         cap: replace countryname = "Kenya"     if `match' == "KEN"  
         cap: replace countryname = "Kyrgyz Republic"     if `match' == "KGZ"  
         cap: replace countryname = "Cambodia"     if `match' == "KHM"  
         cap: replace countryname = "Kiribati"     if `match' == "KIR"  
         cap: replace countryname = "St Kitts and Nevis"     if `match' == "KNA"  
         cap: replace countryname = "Korea, Rep"     if `match' == "KOR"  
         cap: replace countryname = "Kuwait"     if `match' == "KWT"  
         cap: replace countryname = "Latin America and Caribbean (excluding high income)"     if `match' == "LAC"  
         cap: replace countryname = "Lao PDR"     if `match' == "LAO"  
         cap: replace countryname = "Lebanon"     if `match' == "LBN"  
         cap: replace countryname = "Liberia"     if `match' == "LBR"  
         cap: replace countryname = "Libya"     if `match' == "LBY"  
         cap: replace countryname = "St Lucia"     if `match' == "LCA"  
         cap: replace countryname = "Latin America and Caribbean"     if `match' == "LCN"  
         cap: replace countryname = "Latin America and the Caribbean"     if `match' == "LCR"  
         cap: replace countryname = "Least developed countries: UN classification"     if `match' == "LDC"  
         cap: replace countryname = "Low income"     if `match' == "LIC"  
         cap: replace countryname = "Liechtenstein"     if `match' == "LIE"  
         cap: replace countryname = "Sri Lanka"     if `match' == "LKA"  
         cap: replace countryname = "Lower middle income"     if `match' == "LMC"  
         cap: replace countryname = "Low and middle income"     if `match' == "LMY"  
         cap: replace countryname = "Lesotho"     if `match' == "LSO"  
         cap: replace countryname = "Late-demographic dividend"     if `match' == "LTE"  
         cap: replace countryname = "Lithuania"     if `match' == "LTU"  
         cap: replace countryname = "Luxembourg"     if `match' == "LUX"  
         cap: replace countryname = "Latvia"     if `match' == "LVA"  
         cap: replace countryname = "Macao SAR, China"     if `match' == "MAC"  
         cap: replace countryname = "St Martin (French part)"     if `match' == "MAF"  
         cap: replace countryname = "Morocco"     if `match' == "MAR"  
         cap: replace countryname = "Central America"     if `match' == "MCA"  
         cap: replace countryname = "Monaco"     if `match' == "MCO"  
         cap: replace countryname = "Moldova"     if `match' == "MDA"  
         cap: replace countryname = "Middle East (developing only)"     if `match' == "MDE"  
         cap: replace countryname = "Madagascar"     if `match' == "MDG"  
         cap: replace countryname = "Maldives"     if `match' == "MDV"  
         cap: replace countryname = "Middle East and North Africa"     if `match' == "MEA"  
         cap: replace countryname = "Mexico"     if `match' == "MEX"  
         cap: replace countryname = "Marshall Islands"     if `match' == "MHL"  
         cap: replace countryname = "Middle income"     if `match' == "MIC"  
         cap: replace countryname = "North Macedonia"     if `match' == "MKD"  
         cap: replace countryname = "Mali"     if `match' == "MLI"  
         cap: replace countryname = "Malta"     if `match' == "MLT"  
         cap: replace countryname = "Myanmar"     if `match' == "MMR"  
         cap: replace countryname = "Middle East and North Africa (excluding high income)"     if `match' == "MNA"  
         cap: replace countryname = "Montenegro"     if `match' == "MNE"  
         cap: replace countryname = "Mongolia"     if `match' == "MNG"  
         cap: replace countryname = "Northern Mariana Islands"     if `match' == "MNP"  
         cap: replace countryname = "Mozambique"     if `match' == "MOZ"  
         cap: replace countryname = "Mauritania"     if `match' == "MRT"  
         cap: replace countryname = "Mauritius"     if `match' == "MUS"  
         cap: replace countryname = "Malawi"     if `match' == "MWI"  
         cap: replace countryname = "Malaysia"     if `match' == "MYS"  
         cap: replace countryname = "North America"     if `match' == "NAC"  
         cap: replace countryname = "North Africa"     if `match' == "NAF"  
         cap: replace countryname = "Namibia"     if `match' == "NAM"  
         cap: replace countryname = "New Caledonia"     if `match' == "NCL"  
         cap: replace countryname = "Niger"     if `match' == "NER"  
         cap: replace countryname = "Nigeria"     if `match' == "NGA"  
         cap: replace countryname = "Nicaragua"     if `match' == "NIC"  
         cap: replace countryname = "Netherlands"     if `match' == "NLD"  
         cap: replace countryname = "Non-resource rich Sub-Saharan Africa countries, of which landlocked"     if `match' == "NLS"  
         cap: replace countryname = "Norway"     if `match' == "NOR"  
         cap: replace countryname = "Nepal"     if `match' == "NPL"  
         cap: replace countryname = "Non-resource rich Sub-Saharan Africa countries"     if `match' == "NRS"  
         cap: replace countryname = "Nauru"     if `match' == "NRU"  
         cap: replace countryname = "IDA countries not classified as fragile situations, excluding Sub-Saharan Africa"     if `match' == "NXS"  
         cap: replace countryname = "New Zealand"     if `match' == "NZL"  
         cap: replace countryname = "OECD members"     if `match' == "OED"  
         cap: replace countryname = "Oman"     if `match' == "OMN"  
         cap: replace countryname = "Other small states"     if `match' == "OSS"  
         cap: replace countryname = "Pakistan"     if `match' == "PAK"  
         cap: replace countryname = "Panama"     if `match' == "PAN"  
         cap: replace countryname = "Peru"     if `match' == "PER"  
         cap: replace countryname = "Philippines"     if `match' == "PHL"  
         cap: replace countryname = "Palau"     if `match' == "PLW"  
         cap: replace countryname = "Papua New Guinea"     if `match' == "PNG"  
         cap: replace countryname = "Poland"     if `match' == "POL"  
         cap: replace countryname = "Pre-demographic dividend"     if `match' == "PRE"  
         cap: replace countryname = "Puerto Rico"     if `match' == "PRI"  
         cap: replace countryname = "Korea, Dem People’s Rep"     if `match' == "PRK"  
         cap: replace countryname = "Portugal"     if `match' == "PRT"  
         cap: replace countryname = "Paraguay"     if `match' == "PRY"  
         cap: replace countryname = "West Bank and Gaza"     if `match' == "PSE"  
         cap: replace countryname = "Pacific island small states"     if `match' == "PSS"  
         cap: replace countryname = "Post-demographic dividend"     if `match' == "PST"  
         cap: replace countryname = "French Polynesia"     if `match' == "PYF"  
         cap: replace countryname = "Qatar"     if `match' == "QAT"  
         cap: replace countryname = "Romania"     if `match' == "ROU"  
         cap: replace countryname = "Resource rich Sub-Saharan Africa countries"     if `match' == "RRS"  
         cap: replace countryname = "Resource rich Sub-Saharan Africa countries, of which oil exporters"     if `match' == "RSO"  
         cap: replace countryname = "Russian Federation"     if `match' == "RUS"  
         cap: replace countryname = "Rwanda"     if `match' == "RWA"  
         cap: replace countryname = "South Asia"     if `match' == "SAS"  
         cap: replace countryname = "Saudi Arabia"     if `match' == "SAU"  
         cap: replace countryname = "Southern Cone"     if `match' == "SCE"  
         cap: replace countryname = "Sudan"     if `match' == "SDN"  
         cap: replace countryname = "Senegal"     if `match' == "SEN"  
         cap: replace countryname = "Singapore"     if `match' == "SGP"  
         cap: replace countryname = "Solomon Islands"     if `match' == "SLB"  
         cap: replace countryname = "Sierra Leone"     if `match' == "SLE"  
         cap: replace countryname = "El Salvador"     if `match' == "SLV"  
         cap: replace countryname = "San Marino"     if `match' == "SMR"  
         cap: replace countryname = "Somalia"     if `match' == "SOM"  
         cap: replace countryname = "Serbia"     if `match' == "SRB"  
         cap: replace countryname = "Sub-Saharan Africa (excluding high income)"     if `match' == "SSA"  
         cap: replace countryname = "South Sudan"     if `match' == "SSD"  
         cap: replace countryname = "Sub-Saharan Africa"     if `match' == "SSF"  
         cap: replace countryname = "Small states"     if `match' == "SST"  
         cap: replace countryname = "Sao Tome and Principe"     if `match' == "STP"  
         cap: replace countryname = "Suriname"     if `match' == "SUR"  
         cap: replace countryname = "Slovak Republic"     if `match' == "SVK"  
         cap: replace countryname = "Slovenia"     if `match' == "SVN"  
         cap: replace countryname = "Sweden"     if `match' == "SWE"  
         cap: replace countryname = "Eswatini"     if `match' == "SWZ"  
         cap: replace countryname = "Sint Maarten (Dutch part)"     if `match' == "SXM"  
         cap: replace countryname = "Sub-Saharan Africa excluding South Africa"     if `match' == "SXZ"  
         cap: replace countryname = "Seychelles"     if `match' == "SYC"  
         cap: replace countryname = "Syrian Arab Republic"     if `match' == "SYR"  
         cap: replace countryname = "Turks and Caicos Islands"     if `match' == "TCA"  
         cap: replace countryname = "Chad"     if `match' == "TCD"  
         cap: replace countryname = "East Asia and Pacific (IDA and IBRD countries)"     if `match' == "TEA"  
         cap: replace countryname = "Europe and Central Asia (IDA and IBRD countries)"     if `match' == "TEC"  
         cap: replace countryname = "Togo"     if `match' == "TGO"  
         cap: replace countryname = "Thailand"     if `match' == "THA"  
         cap: replace countryname = "Tajikistan"     if `match' == "TJK"  
         cap: replace countryname = "Turkmenistan"     if `match' == "TKM"  
         cap: replace countryname = "Latin America and the Caribbean (IDA and IBRD countries)"     if `match' == "TLA"  
         cap: replace countryname = "Timor-Leste"     if `match' == "TLS"  
         cap: replace countryname = "Middle East and North Africa (IDA and IBRD countries)"     if `match' == "TMN"  
         cap: replace countryname = "Tonga"     if `match' == "TON"  
         cap: replace countryname = "South Asia (IDA and IBRD)"     if `match' == "TSA"  
         cap: replace countryname = "Sub-Saharan Africa (IDA and IBRD countries)"     if `match' == "TSS"  
         cap: replace countryname = "Trinidad and Tobago"     if `match' == "TTO"  
         cap: replace countryname = "Tunisia"     if `match' == "TUN"  
         cap: replace countryname = "Turkey"     if `match' == "TUR"  
         cap: replace countryname = "Tuvalu"     if `match' == "TUV"  
         cap: replace countryname = "Taiwan, China"     if `match' == "TWN"  
         cap: replace countryname = "Tanzania"     if `match' == "TZA"  
         cap: replace countryname = "Uganda"     if `match' == "UGA"  
         cap: replace countryname = "Ukraine"     if `match' == "UKR"  
         cap: replace countryname = "Upper middle income"     if `match' == "UMC"  
         cap: replace countryname = "Uruguay"     if `match' == "URY"  
         cap: replace countryname = "United States"     if `match' == "USA"  
         cap: replace countryname = "Uzbekistan"     if `match' == "UZB"  
         cap: replace countryname = "St Vincent and the Grenadines"     if `match' == "VCT"  
         cap: replace countryname = "Venezuela, RB"     if `match' == "VEN"  
         cap: replace countryname = "British Virgin Islands"     if `match' == "VGB"  
         cap: replace countryname = "Virgin Islands (US)"     if `match' == "VIR"  
         cap: replace countryname = "Vietnam"     if `match' == "VNM"  
         cap: replace countryname = "Vanuatu"     if `match' == "VUT"  
         cap: replace countryname = "World"     if `match' == "WLD"  
         cap: replace countryname = "Samoa"     if `match' == "WSM"  
         cap: replace countryname = "Kosovo"     if `match' == "XKX"  
         cap: replace countryname = "Sub-Saharan Africa excluding South Africa and Nigeria"     if `match' == "XZN"  
         cap: replace countryname = "Yemen, Rep"     if `match' == "YEM"  
         cap: replace countryname = "South Africa"     if `match' == "ZAF"  
         cap: replace countryname = "Zambia"     if `match' == "ZMB"  
         cap: replace countryname = "Zimbabwe"     if `match' == "ZWE"  
  
******************  Lable: countryname ******************
  
     lab var countryname                 "Country Name" 
 }        
  
 ****************************************************** 
  
 ******************  Values: region ****************** 
  
 qui if ("`region'" == "region") {      
  
         cap: gen region = ""  
         cap: replace region = "LCN"     if `match' == "ABW"  
         cap: replace region = "SAS"     if `match' == "AFG"  
         cap: replace region = "NA"     if `match' == "AFR"  
         cap: replace region = "SSF"     if `match' == "AGO"  
         cap: replace region = "ECS"     if `match' == "ALB"  
         cap: replace region = "ECS"     if `match' == "AND"  
         cap: replace region = "NA"     if `match' == "ANR"  
         cap: replace region = "NA"     if `match' == "ARB"  
         cap: replace region = "MEA"     if `match' == "ARE"  
         cap: replace region = "LCN"     if `match' == "ARG"  
         cap: replace region = "ECS"     if `match' == "ARM"  
         cap: replace region = "EAS"     if `match' == "ASM"  
         cap: replace region = "LCN"     if `match' == "ATG"  
         cap: replace region = "EAS"     if `match' == "AUS"  
         cap: replace region = "ECS"     if `match' == "AUT"  
         cap: replace region = "ECS"     if `match' == "AZE"  
         cap: replace region = "SSF"     if `match' == "BDI"  
         cap: replace region = "NA"     if `match' == "BEA"  
         cap: replace region = "NA"     if `match' == "BEC"  
         cap: replace region = "ECS"     if `match' == "BEL"  
         cap: replace region = "SSF"     if `match' == "BEN"  
         cap: replace region = "SSF"     if `match' == "BFA"  
         cap: replace region = "SAS"     if `match' == "BGD"  
         cap: replace region = "ECS"     if `match' == "BGR"  
         cap: replace region = "NA"     if `match' == "BHI"  
         cap: replace region = "MEA"     if `match' == "BHR"  
         cap: replace region = "LCN"     if `match' == "BHS"  
         cap: replace region = "ECS"     if `match' == "BIH"  
         cap: replace region = "NA"     if `match' == "BLA"  
         cap: replace region = "ECS"     if `match' == "BLR"  
         cap: replace region = "LCN"     if `match' == "BLZ"  
         cap: replace region = "NA"     if `match' == "BMN"  
         cap: replace region = "NAC"     if `match' == "BMU"  
         cap: replace region = "LCN"     if `match' == "BOL"  
         cap: replace region = "LCN"     if `match' == "BRA"  
         cap: replace region = "LCN"     if `match' == "BRB"  
         cap: replace region = "EAS"     if `match' == "BRN"  
         cap: replace region = "NA"     if `match' == "BSS"  
         cap: replace region = "SAS"     if `match' == "BTN"  
         cap: replace region = "SSF"     if `match' == "BWA"  
         cap: replace region = "NA"     if `match' == "CAA"  
         cap: replace region = "SSF"     if `match' == "CAF"  
         cap: replace region = "NAC"     if `match' == "CAN"  
         cap: replace region = "NA"     if `match' == "CEA"  
         cap: replace region = "NA"     if `match' == "CEB"  
         cap: replace region = "NA"     if `match' == "CEU"  
         cap: replace region = "ECS"     if `match' == "CHE"  
         cap: replace region = "ECS"     if `match' == "CHI"  
         cap: replace region = "LCN"     if `match' == "CHL"  
         cap: replace region = "EAS"     if `match' == "CHN"  
         cap: replace region = "SSF"     if `match' == "CIV"  
         cap: replace region = "NA"     if `match' == "CLA"  
         cap: replace region = "NA"     if `match' == "CME"  
         cap: replace region = "SSF"     if `match' == "CMR"  
         cap: replace region = "SSF"     if `match' == "COD"  
         cap: replace region = "SSF"     if `match' == "COG"  
         cap: replace region = "LCN"     if `match' == "COL"  
         cap: replace region = "SSF"     if `match' == "COM"  
         cap: replace region = "SSF"     if `match' == "CPV"  
         cap: replace region = "LCN"     if `match' == "CRI"  
         cap: replace region = "NA"     if `match' == "CSA"  
         cap: replace region = "NA"     if `match' == "CSS"  
         cap: replace region = "LCN"     if `match' == "CUB"  
         cap: replace region = "LCN"     if `match' == "CUW"  
         cap: replace region = "LCN"     if `match' == "CYM"  
         cap: replace region = "ECS"     if `match' == "CYP"  
         cap: replace region = "ECS"     if `match' == "CZE"  
         cap: replace region = "NA"     if `match' == "DEA"  
         cap: replace region = "NA"     if `match' == "DEC"  
         cap: replace region = "ECS"     if `match' == "DEU"  
         cap: replace region = "NA"     if `match' == "DFS"  
         cap: replace region = "MEA"     if `match' == "DJI"  
         cap: replace region = "NA"     if `match' == "DLA"  
         cap: replace region = "LCN"     if `match' == "DMA"  
         cap: replace region = "NA"     if `match' == "DMN"  
         cap: replace region = "NA"     if `match' == "DNF"  
         cap: replace region = "ECS"     if `match' == "DNK"  
         cap: replace region = "NA"     if `match' == "DNS"  
         cap: replace region = "LCN"     if `match' == "DOM"  
         cap: replace region = "NA"     if `match' == "DSA"  
         cap: replace region = "NA"     if `match' == "DSF"  
         cap: replace region = "NA"     if `match' == "DSS"  
         cap: replace region = "NA"     if `match' == "DXS"  
         cap: replace region = "MEA"     if `match' == "DZA"  
         cap: replace region = "NA"     if `match' == "EAP"  
         cap: replace region = "NA"     if `match' == "EAR"  
         cap: replace region = "NA"     if `match' == "EAS"  
         cap: replace region = "NA"     if `match' == "ECA"  
         cap: replace region = "NA"     if `match' == "ECS"  
         cap: replace region = "LCN"     if `match' == "ECU"  
         cap: replace region = "MEA"     if `match' == "EGY"  
         cap: replace region = "NA"     if `match' == "EMU"  
         cap: replace region = "SSF"     if `match' == "ERI"  
         cap: replace region = "ECS"     if `match' == "ESP"  
         cap: replace region = "ECS"     if `match' == "EST"  
         cap: replace region = "SSF"     if `match' == "ETH"  
         cap: replace region = "NA"     if `match' == "EUU"  
         cap: replace region = "NA"     if `match' == "FCS"  
         cap: replace region = "ECS"     if `match' == "FIN"  
         cap: replace region = "EAS"     if `match' == "FJI"  
         cap: replace region = "ECS"     if `match' == "FRA"  
         cap: replace region = "ECS"     if `match' == "FRO"  
         cap: replace region = "EAS"     if `match' == "FSM"  
         cap: replace region = "NA"     if `match' == "FXS"  
         cap: replace region = "SSF"     if `match' == "GAB"  
         cap: replace region = "ECS"     if `match' == "GBR"  
         cap: replace region = "ECS"     if `match' == "GEO"  
         cap: replace region = "SSF"     if `match' == "GHA"  
         cap: replace region = "ECS"     if `match' == "GIB"  
         cap: replace region = "SSF"     if `match' == "GIN"  
         cap: replace region = "SSF"     if `match' == "GMB"  
         cap: replace region = "SSF"     if `match' == "GNB"  
         cap: replace region = "SSF"     if `match' == "GNQ"  
         cap: replace region = "ECS"     if `match' == "GRC"  
         cap: replace region = "LCN"     if `match' == "GRD"  
         cap: replace region = "ECS"     if `match' == "GRL"  
         cap: replace region = "LCN"     if `match' == "GTM"  
         cap: replace region = "EAS"     if `match' == "GUM"  
         cap: replace region = "LCN"     if `match' == "GUY"  
         cap: replace region = "NA"     if `match' == "HIC"  
         cap: replace region = "EAS"     if `match' == "HKG"  
         cap: replace region = "LCN"     if `match' == "HND"  
         cap: replace region = "NA"     if `match' == "HPC"  
         cap: replace region = "ECS"     if `match' == "HRV"  
         cap: replace region = "LCN"     if `match' == "HTI"  
         cap: replace region = "ECS"     if `match' == "HUN"  
         cap: replace region = "NA"     if `match' == "IBB"  
         cap: replace region = "NA"     if `match' == "IBD"  
         cap: replace region = "NA"     if `match' == "IBT"  
         cap: replace region = "NA"     if `match' == "IDA"  
         cap: replace region = "NA"     if `match' == "IDB"  
         cap: replace region = "EAS"     if `match' == "IDN"  
         cap: replace region = "NA"     if `match' == "IDX"  
         cap: replace region = "ECS"     if `match' == "IMN"  
         cap: replace region = "SAS"     if `match' == "IND"  
         cap: replace region = "NA"     if `match' == "INX"  
         cap: replace region = "ECS"     if `match' == "IRL"  
         cap: replace region = "MEA"     if `match' == "IRN"  
         cap: replace region = "MEA"     if `match' == "IRQ"  
         cap: replace region = "ECS"     if `match' == "ISL"  
         cap: replace region = "MEA"     if `match' == "ISR"  
         cap: replace region = "ECS"     if `match' == "ITA"  
         cap: replace region = "LCN"     if `match' == "JAM"  
         cap: replace region = "MEA"     if `match' == "JOR"  
         cap: replace region = "EAS"     if `match' == "JPN"  
         cap: replace region = "ECS"     if `match' == "KAZ"  
         cap: replace region = "SSF"     if `match' == "KEN"  
         cap: replace region = "ECS"     if `match' == "KGZ"  
         cap: replace region = "EAS"     if `match' == "KHM"  
         cap: replace region = "EAS"     if `match' == "KIR"  
         cap: replace region = "LCN"     if `match' == "KNA"  
         cap: replace region = "EAS"     if `match' == "KOR"  
         cap: replace region = "MEA"     if `match' == "KWT"  
         cap: replace region = "NA"     if `match' == "LAC"  
         cap: replace region = "EAS"     if `match' == "LAO"  
         cap: replace region = "MEA"     if `match' == "LBN"  
         cap: replace region = "SSF"     if `match' == "LBR"  
         cap: replace region = "MEA"     if `match' == "LBY"  
         cap: replace region = "LCN"     if `match' == "LCA"  
         cap: replace region = "NA"     if `match' == "LCN"  
         cap: replace region = "NA"     if `match' == "LCR"  
         cap: replace region = "NA"     if `match' == "LDC"  
         cap: replace region = "NA"     if `match' == "LIC"  
         cap: replace region = "ECS"     if `match' == "LIE"  
         cap: replace region = "SAS"     if `match' == "LKA"  
         cap: replace region = "NA"     if `match' == "LMC"  
         cap: replace region = "NA"     if `match' == "LMY"  
         cap: replace region = "SSF"     if `match' == "LSO"  
         cap: replace region = "NA"     if `match' == "LTE"  
         cap: replace region = "ECS"     if `match' == "LTU"  
         cap: replace region = "ECS"     if `match' == "LUX"  
         cap: replace region = "ECS"     if `match' == "LVA"  
         cap: replace region = "EAS"     if `match' == "MAC"  
         cap: replace region = "LCN"     if `match' == "MAF"  
         cap: replace region = "MEA"     if `match' == "MAR"  
         cap: replace region = "NA"     if `match' == "MCA"  
         cap: replace region = "ECS"     if `match' == "MCO"  
         cap: replace region = "ECS"     if `match' == "MDA"  
         cap: replace region = "NA"     if `match' == "MDE"  
         cap: replace region = "SSF"     if `match' == "MDG"  
         cap: replace region = "SAS"     if `match' == "MDV"  
         cap: replace region = "NA"     if `match' == "MEA"  
         cap: replace region = "LCN"     if `match' == "MEX"  
         cap: replace region = "EAS"     if `match' == "MHL"  
         cap: replace region = "NA"     if `match' == "MIC"  
         cap: replace region = "ECS"     if `match' == "MKD"  
         cap: replace region = "SSF"     if `match' == "MLI"  
         cap: replace region = "MEA"     if `match' == "MLT"  
         cap: replace region = "EAS"     if `match' == "MMR"  
         cap: replace region = "NA"     if `match' == "MNA"  
         cap: replace region = "ECS"     if `match' == "MNE"  
         cap: replace region = "EAS"     if `match' == "MNG"  
         cap: replace region = "EAS"     if `match' == "MNP"  
         cap: replace region = "SSF"     if `match' == "MOZ"  
         cap: replace region = "SSF"     if `match' == "MRT"  
         cap: replace region = "SSF"     if `match' == "MUS"  
         cap: replace region = "SSF"     if `match' == "MWI"  
         cap: replace region = "EAS"     if `match' == "MYS"  
         cap: replace region = "NA"     if `match' == "NAC"  
         cap: replace region = "NA"     if `match' == "NAF"  
         cap: replace region = "SSF"     if `match' == "NAM"  
         cap: replace region = "EAS"     if `match' == "NCL"  
         cap: replace region = "SSF"     if `match' == "NER"  
         cap: replace region = "SSF"     if `match' == "NGA"  
         cap: replace region = "LCN"     if `match' == "NIC"  
         cap: replace region = "ECS"     if `match' == "NLD"  
         cap: replace region = "NA"     if `match' == "NLS"  
         cap: replace region = "ECS"     if `match' == "NOR"  
         cap: replace region = "SAS"     if `match' == "NPL"  
         cap: replace region = "NA"     if `match' == "NRS"  
         cap: replace region = "EAS"     if `match' == "NRU"  
         cap: replace region = "NA"     if `match' == "NXS"  
         cap: replace region = "EAS"     if `match' == "NZL"  
         cap: replace region = "NA"     if `match' == "OED"  
         cap: replace region = "MEA"     if `match' == "OMN"  
         cap: replace region = "NA"     if `match' == "OSS"  
         cap: replace region = "SAS"     if `match' == "PAK"  
         cap: replace region = "LCN"     if `match' == "PAN"  
         cap: replace region = "LCN"     if `match' == "PER"  
         cap: replace region = "EAS"     if `match' == "PHL"  
         cap: replace region = "EAS"     if `match' == "PLW"  
         cap: replace region = "EAS"     if `match' == "PNG"  
         cap: replace region = "ECS"     if `match' == "POL"  
         cap: replace region = "NA"     if `match' == "PRE"  
         cap: replace region = "LCN"     if `match' == "PRI"  
         cap: replace region = "EAS"     if `match' == "PRK"  
         cap: replace region = "ECS"     if `match' == "PRT"  
         cap: replace region = "LCN"     if `match' == "PRY"  
         cap: replace region = "MEA"     if `match' == "PSE"  
         cap: replace region = "NA"     if `match' == "PSS"  
         cap: replace region = "NA"     if `match' == "PST"  
         cap: replace region = "EAS"     if `match' == "PYF"  
         cap: replace region = "MEA"     if `match' == "QAT"  
         cap: replace region = "ECS"     if `match' == "ROU"  
         cap: replace region = "NA"     if `match' == "RRS"  
         cap: replace region = "NA"     if `match' == "RSO"  
         cap: replace region = "ECS"     if `match' == "RUS"  
         cap: replace region = "SSF"     if `match' == "RWA"  
         cap: replace region = "NA"     if `match' == "SAS"  
         cap: replace region = "MEA"     if `match' == "SAU"  
         cap: replace region = "NA"     if `match' == "SCE"  
         cap: replace region = "SSF"     if `match' == "SDN"  
         cap: replace region = "SSF"     if `match' == "SEN"  
         cap: replace region = "EAS"     if `match' == "SGP"  
         cap: replace region = "EAS"     if `match' == "SLB"  
         cap: replace region = "SSF"     if `match' == "SLE"  
         cap: replace region = "LCN"     if `match' == "SLV"  
         cap: replace region = "ECS"     if `match' == "SMR"  
         cap: replace region = "SSF"     if `match' == "SOM"  
         cap: replace region = "ECS"     if `match' == "SRB"  
         cap: replace region = "NA"     if `match' == "SSA"  
         cap: replace region = "SSF"     if `match' == "SSD"  
         cap: replace region = "NA"     if `match' == "SSF"  
         cap: replace region = "NA"     if `match' == "SST"  
         cap: replace region = "SSF"     if `match' == "STP"  
         cap: replace region = "LCN"     if `match' == "SUR"  
         cap: replace region = "ECS"     if `match' == "SVK"  
         cap: replace region = "ECS"     if `match' == "SVN"  
         cap: replace region = "ECS"     if `match' == "SWE"  
         cap: replace region = "SSF"     if `match' == "SWZ"  
         cap: replace region = "LCN"     if `match' == "SXM"  
         cap: replace region = "NA"     if `match' == "SXZ"  
         cap: replace region = "SSF"     if `match' == "SYC"  
         cap: replace region = "MEA"     if `match' == "SYR"  
         cap: replace region = "LCN"     if `match' == "TCA"  
         cap: replace region = "SSF"     if `match' == "TCD"  
         cap: replace region = "NA"     if `match' == "TEA"  
         cap: replace region = "NA"     if `match' == "TEC"  
         cap: replace region = "SSF"     if `match' == "TGO"  
         cap: replace region = "EAS"     if `match' == "THA"  
         cap: replace region = "ECS"     if `match' == "TJK"  
         cap: replace region = "ECS"     if `match' == "TKM"  
         cap: replace region = "NA"     if `match' == "TLA"  
         cap: replace region = "EAS"     if `match' == "TLS"  
         cap: replace region = "NA"     if `match' == "TMN"  
         cap: replace region = "EAS"     if `match' == "TON"  
         cap: replace region = "NA"     if `match' == "TSA"  
         cap: replace region = "NA"     if `match' == "TSS"  
         cap: replace region = "LCN"     if `match' == "TTO"  
         cap: replace region = "MEA"     if `match' == "TUN"  
         cap: replace region = "ECS"     if `match' == "TUR"  
         cap: replace region = "EAS"     if `match' == "TUV"  
         cap: replace region = "EAS"     if `match' == "TWN"  
         cap: replace region = "SSF"     if `match' == "TZA"  
         cap: replace region = "SSF"     if `match' == "UGA"  
         cap: replace region = "ECS"     if `match' == "UKR"  
         cap: replace region = "NA"     if `match' == "UMC"  
         cap: replace region = "LCN"     if `match' == "URY"  
         cap: replace region = "NAC"     if `match' == "USA"  
         cap: replace region = "ECS"     if `match' == "UZB"  
         cap: replace region = "LCN"     if `match' == "VCT"  
         cap: replace region = "LCN"     if `match' == "VEN"  
         cap: replace region = "LCN"     if `match' == "VGB"  
         cap: replace region = "LCN"     if `match' == "VIR"  
         cap: replace region = "EAS"     if `match' == "VNM"  
         cap: replace region = "EAS"     if `match' == "VUT"  
         cap: replace region = "NA"     if `match' == "WLD"  
         cap: replace region = "EAS"     if `match' == "WSM"  
         cap: replace region = "ECS"     if `match' == "XKX"  
         cap: replace region = "NA"     if `match' == "XZN"  
         cap: replace region = "MEA"     if `match' == "YEM"  
         cap: replace region = "SSF"     if `match' == "ZAF"  
         cap: replace region = "SSF"     if `match' == "ZMB"  
         cap: replace region = "SSF"     if `match' == "ZWE"  
  
******************  Lable: region ******************
  
     lab var region                      "Region Code" 
 }        
  
 ****************************************************** 
  
 ******************  Values: region_iso2 ****************** 
  
 qui if ("`region_iso2'" == "region_iso2") {      
  
         cap: gen region_iso2 = ""  
         cap: replace region_iso2 = "ZJ"     if `match' == "ABW"  
         cap: replace region_iso2 = "8S"     if `match' == "AFG"  
         cap: replace region_iso2 = "NA"     if `match' == "AFR"  
         cap: replace region_iso2 = "ZG"     if `match' == "AGO"  
         cap: replace region_iso2 = "Z7"     if `match' == "ALB"  
         cap: replace region_iso2 = "Z7"     if `match' == "AND"  
         cap: replace region_iso2 = "NA"     if `match' == "ANR"  
         cap: replace region_iso2 = "NA"     if `match' == "ARB"  
         cap: replace region_iso2 = "ZQ"     if `match' == "ARE"  
         cap: replace region_iso2 = "ZJ"     if `match' == "ARG"  
         cap: replace region_iso2 = "Z7"     if `match' == "ARM"  
         cap: replace region_iso2 = "Z4"     if `match' == "ASM"  
         cap: replace region_iso2 = "ZJ"     if `match' == "ATG"  
         cap: replace region_iso2 = "Z4"     if `match' == "AUS"  
         cap: replace region_iso2 = "Z7"     if `match' == "AUT"  
         cap: replace region_iso2 = "Z7"     if `match' == "AZE"  
         cap: replace region_iso2 = "ZG"     if `match' == "BDI"  
         cap: replace region_iso2 = "NA"     if `match' == "BEA"  
         cap: replace region_iso2 = "NA"     if `match' == "BEC"  
         cap: replace region_iso2 = "Z7"     if `match' == "BEL"  
         cap: replace region_iso2 = "ZG"     if `match' == "BEN"  
         cap: replace region_iso2 = "ZG"     if `match' == "BFA"  
         cap: replace region_iso2 = "8S"     if `match' == "BGD"  
         cap: replace region_iso2 = "Z7"     if `match' == "BGR"  
         cap: replace region_iso2 = "NA"     if `match' == "BHI"  
         cap: replace region_iso2 = "ZQ"     if `match' == "BHR"  
         cap: replace region_iso2 = "ZJ"     if `match' == "BHS"  
         cap: replace region_iso2 = "Z7"     if `match' == "BIH"  
         cap: replace region_iso2 = "NA"     if `match' == "BLA"  
         cap: replace region_iso2 = "Z7"     if `match' == "BLR"  
         cap: replace region_iso2 = "ZJ"     if `match' == "BLZ"  
         cap: replace region_iso2 = "NA"     if `match' == "BMN"  
         cap: replace region_iso2 = "XU"     if `match' == "BMU"  
         cap: replace region_iso2 = "ZJ"     if `match' == "BOL"  
         cap: replace region_iso2 = "ZJ"     if `match' == "BRA"  
         cap: replace region_iso2 = "ZJ"     if `match' == "BRB"  
         cap: replace region_iso2 = "Z4"     if `match' == "BRN"  
         cap: replace region_iso2 = "NA"     if `match' == "BSS"  
         cap: replace region_iso2 = "8S"     if `match' == "BTN"  
         cap: replace region_iso2 = "ZG"     if `match' == "BWA"  
         cap: replace region_iso2 = "NA"     if `match' == "CAA"  
         cap: replace region_iso2 = "ZG"     if `match' == "CAF"  
         cap: replace region_iso2 = "XU"     if `match' == "CAN"  
         cap: replace region_iso2 = "NA"     if `match' == "CEA"  
         cap: replace region_iso2 = "NA"     if `match' == "CEB"  
         cap: replace region_iso2 = "NA"     if `match' == "CEU"  
         cap: replace region_iso2 = "Z7"     if `match' == "CHE"  
         cap: replace region_iso2 = "Z7"     if `match' == "CHI"  
         cap: replace region_iso2 = "ZJ"     if `match' == "CHL"  
         cap: replace region_iso2 = "Z4"     if `match' == "CHN"  
         cap: replace region_iso2 = "ZG"     if `match' == "CIV"  
         cap: replace region_iso2 = "NA"     if `match' == "CLA"  
         cap: replace region_iso2 = "NA"     if `match' == "CME"  
         cap: replace region_iso2 = "ZG"     if `match' == "CMR"  
         cap: replace region_iso2 = "ZG"     if `match' == "COD"  
         cap: replace region_iso2 = "ZG"     if `match' == "COG"  
         cap: replace region_iso2 = "ZJ"     if `match' == "COL"  
         cap: replace region_iso2 = "ZG"     if `match' == "COM"  
         cap: replace region_iso2 = "ZG"     if `match' == "CPV"  
         cap: replace region_iso2 = "ZJ"     if `match' == "CRI"  
         cap: replace region_iso2 = "NA"     if `match' == "CSA"  
         cap: replace region_iso2 = "NA"     if `match' == "CSS"  
         cap: replace region_iso2 = "ZJ"     if `match' == "CUB"  
         cap: replace region_iso2 = "ZJ"     if `match' == "CUW"  
         cap: replace region_iso2 = "ZJ"     if `match' == "CYM"  
         cap: replace region_iso2 = "Z7"     if `match' == "CYP"  
         cap: replace region_iso2 = "Z7"     if `match' == "CZE"  
         cap: replace region_iso2 = "NA"     if `match' == "DEA"  
         cap: replace region_iso2 = "NA"     if `match' == "DEC"  
         cap: replace region_iso2 = "Z7"     if `match' == "DEU"  
         cap: replace region_iso2 = "NA"     if `match' == "DFS"  
         cap: replace region_iso2 = "ZQ"     if `match' == "DJI"  
         cap: replace region_iso2 = "NA"     if `match' == "DLA"  
         cap: replace region_iso2 = "ZJ"     if `match' == "DMA"  
         cap: replace region_iso2 = "NA"     if `match' == "DMN"  
         cap: replace region_iso2 = "NA"     if `match' == "DNF"  
         cap: replace region_iso2 = "Z7"     if `match' == "DNK"  
         cap: replace region_iso2 = "NA"     if `match' == "DNS"  
         cap: replace region_iso2 = "ZJ"     if `match' == "DOM"  
         cap: replace region_iso2 = "NA"     if `match' == "DSA"  
         cap: replace region_iso2 = "NA"     if `match' == "DSF"  
         cap: replace region_iso2 = "NA"     if `match' == "DSS"  
         cap: replace region_iso2 = "NA"     if `match' == "DXS"  
         cap: replace region_iso2 = "ZQ"     if `match' == "DZA"  
         cap: replace region_iso2 = "NA"     if `match' == "EAP"  
         cap: replace region_iso2 = "NA"     if `match' == "EAR"  
         cap: replace region_iso2 = "NA"     if `match' == "EAS"  
         cap: replace region_iso2 = "NA"     if `match' == "ECA"  
         cap: replace region_iso2 = "NA"     if `match' == "ECS"  
         cap: replace region_iso2 = "ZJ"     if `match' == "ECU"  
         cap: replace region_iso2 = "ZQ"     if `match' == "EGY"  
         cap: replace region_iso2 = "NA"     if `match' == "EMU"  
         cap: replace region_iso2 = "ZG"     if `match' == "ERI"  
         cap: replace region_iso2 = "Z7"     if `match' == "ESP"  
         cap: replace region_iso2 = "Z7"     if `match' == "EST"  
         cap: replace region_iso2 = "ZG"     if `match' == "ETH"  
         cap: replace region_iso2 = "NA"     if `match' == "EUU"  
         cap: replace region_iso2 = "NA"     if `match' == "FCS"  
         cap: replace region_iso2 = "Z7"     if `match' == "FIN"  
         cap: replace region_iso2 = "Z4"     if `match' == "FJI"  
         cap: replace region_iso2 = "Z7"     if `match' == "FRA"  
         cap: replace region_iso2 = "Z7"     if `match' == "FRO"  
         cap: replace region_iso2 = "Z4"     if `match' == "FSM"  
         cap: replace region_iso2 = "NA"     if `match' == "FXS"  
         cap: replace region_iso2 = "ZG"     if `match' == "GAB"  
         cap: replace region_iso2 = "Z7"     if `match' == "GBR"  
         cap: replace region_iso2 = "Z7"     if `match' == "GEO"  
         cap: replace region_iso2 = "ZG"     if `match' == "GHA"  
         cap: replace region_iso2 = "Z7"     if `match' == "GIB"  
         cap: replace region_iso2 = "ZG"     if `match' == "GIN"  
         cap: replace region_iso2 = "ZG"     if `match' == "GMB"  
         cap: replace region_iso2 = "ZG"     if `match' == "GNB"  
         cap: replace region_iso2 = "ZG"     if `match' == "GNQ"  
         cap: replace region_iso2 = "Z7"     if `match' == "GRC"  
         cap: replace region_iso2 = "ZJ"     if `match' == "GRD"  
         cap: replace region_iso2 = "Z7"     if `match' == "GRL"  
         cap: replace region_iso2 = "ZJ"     if `match' == "GTM"  
         cap: replace region_iso2 = "Z4"     if `match' == "GUM"  
         cap: replace region_iso2 = "ZJ"     if `match' == "GUY"  
         cap: replace region_iso2 = "NA"     if `match' == "HIC"  
         cap: replace region_iso2 = "Z4"     if `match' == "HKG"  
         cap: replace region_iso2 = "ZJ"     if `match' == "HND"  
         cap: replace region_iso2 = "NA"     if `match' == "HPC"  
         cap: replace region_iso2 = "Z7"     if `match' == "HRV"  
         cap: replace region_iso2 = "ZJ"     if `match' == "HTI"  
         cap: replace region_iso2 = "Z7"     if `match' == "HUN"  
         cap: replace region_iso2 = "NA"     if `match' == "IBB"  
         cap: replace region_iso2 = "NA"     if `match' == "IBD"  
         cap: replace region_iso2 = "NA"     if `match' == "IBT"  
         cap: replace region_iso2 = "NA"     if `match' == "IDA"  
         cap: replace region_iso2 = "NA"     if `match' == "IDB"  
         cap: replace region_iso2 = "Z4"     if `match' == "IDN"  
         cap: replace region_iso2 = "NA"     if `match' == "IDX"  
         cap: replace region_iso2 = "Z7"     if `match' == "IMN"  
         cap: replace region_iso2 = "8S"     if `match' == "IND"  
         cap: replace region_iso2 = "NA"     if `match' == "INX"  
         cap: replace region_iso2 = "Z7"     if `match' == "IRL"  
         cap: replace region_iso2 = "ZQ"     if `match' == "IRN"  
         cap: replace region_iso2 = "ZQ"     if `match' == "IRQ"  
         cap: replace region_iso2 = "Z7"     if `match' == "ISL"  
         cap: replace region_iso2 = "ZQ"     if `match' == "ISR"  
         cap: replace region_iso2 = "Z7"     if `match' == "ITA"  
         cap: replace region_iso2 = "ZJ"     if `match' == "JAM"  
         cap: replace region_iso2 = "ZQ"     if `match' == "JOR"  
         cap: replace region_iso2 = "Z4"     if `match' == "JPN"  
         cap: replace region_iso2 = "Z7"     if `match' == "KAZ"  
         cap: replace region_iso2 = "ZG"     if `match' == "KEN"  
         cap: replace region_iso2 = "Z7"     if `match' == "KGZ"  
         cap: replace region_iso2 = "Z4"     if `match' == "KHM"  
         cap: replace region_iso2 = "Z4"     if `match' == "KIR"  
         cap: replace region_iso2 = "ZJ"     if `match' == "KNA"  
         cap: replace region_iso2 = "Z4"     if `match' == "KOR"  
         cap: replace region_iso2 = "ZQ"     if `match' == "KWT"  
         cap: replace region_iso2 = "NA"     if `match' == "LAC"  
         cap: replace region_iso2 = "Z4"     if `match' == "LAO"  
         cap: replace region_iso2 = "ZQ"     if `match' == "LBN"  
         cap: replace region_iso2 = "ZG"     if `match' == "LBR"  
         cap: replace region_iso2 = "ZQ"     if `match' == "LBY"  
         cap: replace region_iso2 = "ZJ"     if `match' == "LCA"  
         cap: replace region_iso2 = "NA"     if `match' == "LCN"  
         cap: replace region_iso2 = "NA"     if `match' == "LCR"  
         cap: replace region_iso2 = "NA"     if `match' == "LDC"  
         cap: replace region_iso2 = "NA"     if `match' == "LIC"  
         cap: replace region_iso2 = "Z7"     if `match' == "LIE"  
         cap: replace region_iso2 = "8S"     if `match' == "LKA"  
         cap: replace region_iso2 = "NA"     if `match' == "LMC"  
         cap: replace region_iso2 = "NA"     if `match' == "LMY"  
         cap: replace region_iso2 = "ZG"     if `match' == "LSO"  
         cap: replace region_iso2 = "NA"     if `match' == "LTE"  
         cap: replace region_iso2 = "Z7"     if `match' == "LTU"  
         cap: replace region_iso2 = "Z7"     if `match' == "LUX"  
         cap: replace region_iso2 = "Z7"     if `match' == "LVA"  
         cap: replace region_iso2 = "Z4"     if `match' == "MAC"  
         cap: replace region_iso2 = "ZJ"     if `match' == "MAF"  
         cap: replace region_iso2 = "ZQ"     if `match' == "MAR"  
         cap: replace region_iso2 = "NA"     if `match' == "MCA"  
         cap: replace region_iso2 = "Z7"     if `match' == "MCO"  
         cap: replace region_iso2 = "Z7"     if `match' == "MDA"  
         cap: replace region_iso2 = "NA"     if `match' == "MDE"  
         cap: replace region_iso2 = "ZG"     if `match' == "MDG"  
         cap: replace region_iso2 = "8S"     if `match' == "MDV"  
         cap: replace region_iso2 = "NA"     if `match' == "MEA"  
         cap: replace region_iso2 = "ZJ"     if `match' == "MEX"  
         cap: replace region_iso2 = "Z4"     if `match' == "MHL"  
         cap: replace region_iso2 = "NA"     if `match' == "MIC"  
         cap: replace region_iso2 = "Z7"     if `match' == "MKD"  
         cap: replace region_iso2 = "ZG"     if `match' == "MLI"  
         cap: replace region_iso2 = "ZQ"     if `match' == "MLT"  
         cap: replace region_iso2 = "Z4"     if `match' == "MMR"  
         cap: replace region_iso2 = "NA"     if `match' == "MNA"  
         cap: replace region_iso2 = "Z7"     if `match' == "MNE"  
         cap: replace region_iso2 = "Z4"     if `match' == "MNG"  
         cap: replace region_iso2 = "Z4"     if `match' == "MNP"  
         cap: replace region_iso2 = "ZG"     if `match' == "MOZ"  
         cap: replace region_iso2 = "ZG"     if `match' == "MRT"  
         cap: replace region_iso2 = "ZG"     if `match' == "MUS"  
         cap: replace region_iso2 = "ZG"     if `match' == "MWI"  
         cap: replace region_iso2 = "Z4"     if `match' == "MYS"  
         cap: replace region_iso2 = "NA"     if `match' == "NAC"  
         cap: replace region_iso2 = "NA"     if `match' == "NAF"  
         cap: replace region_iso2 = "ZG"     if `match' == "NAM"  
         cap: replace region_iso2 = "Z4"     if `match' == "NCL"  
         cap: replace region_iso2 = "ZG"     if `match' == "NER"  
         cap: replace region_iso2 = "ZG"     if `match' == "NGA"  
         cap: replace region_iso2 = "ZJ"     if `match' == "NIC"  
         cap: replace region_iso2 = "Z7"     if `match' == "NLD"  
         cap: replace region_iso2 = "NA"     if `match' == "NLS"  
         cap: replace region_iso2 = "Z7"     if `match' == "NOR"  
         cap: replace region_iso2 = "8S"     if `match' == "NPL"  
         cap: replace region_iso2 = "NA"     if `match' == "NRS"  
         cap: replace region_iso2 = "Z4"     if `match' == "NRU"  
         cap: replace region_iso2 = "NA"     if `match' == "NXS"  
         cap: replace region_iso2 = "Z4"     if `match' == "NZL"  
         cap: replace region_iso2 = "NA"     if `match' == "OED"  
         cap: replace region_iso2 = "ZQ"     if `match' == "OMN"  
         cap: replace region_iso2 = "NA"     if `match' == "OSS"  
         cap: replace region_iso2 = "8S"     if `match' == "PAK"  
         cap: replace region_iso2 = "ZJ"     if `match' == "PAN"  
         cap: replace region_iso2 = "ZJ"     if `match' == "PER"  
         cap: replace region_iso2 = "Z4"     if `match' == "PHL"  
         cap: replace region_iso2 = "Z4"     if `match' == "PLW"  
         cap: replace region_iso2 = "Z4"     if `match' == "PNG"  
         cap: replace region_iso2 = "Z7"     if `match' == "POL"  
         cap: replace region_iso2 = "NA"     if `match' == "PRE"  
         cap: replace region_iso2 = "ZJ"     if `match' == "PRI"  
         cap: replace region_iso2 = "Z4"     if `match' == "PRK"  
         cap: replace region_iso2 = "Z7"     if `match' == "PRT"  
         cap: replace region_iso2 = "ZJ"     if `match' == "PRY"  
         cap: replace region_iso2 = "ZQ"     if `match' == "PSE"  
         cap: replace region_iso2 = "NA"     if `match' == "PSS"  
         cap: replace region_iso2 = "NA"     if `match' == "PST"  
         cap: replace region_iso2 = "Z4"     if `match' == "PYF"  
         cap: replace region_iso2 = "ZQ"     if `match' == "QAT"  
         cap: replace region_iso2 = "Z7"     if `match' == "ROU"  
         cap: replace region_iso2 = "NA"     if `match' == "RRS"  
         cap: replace region_iso2 = "NA"     if `match' == "RSO"  
         cap: replace region_iso2 = "Z7"     if `match' == "RUS"  
         cap: replace region_iso2 = "ZG"     if `match' == "RWA"  
         cap: replace region_iso2 = "NA"     if `match' == "SAS"  
         cap: replace region_iso2 = "ZQ"     if `match' == "SAU"  
         cap: replace region_iso2 = "NA"     if `match' == "SCE"  
         cap: replace region_iso2 = "ZG"     if `match' == "SDN"  
         cap: replace region_iso2 = "ZG"     if `match' == "SEN"  
         cap: replace region_iso2 = "Z4"     if `match' == "SGP"  
         cap: replace region_iso2 = "Z4"     if `match' == "SLB"  
         cap: replace region_iso2 = "ZG"     if `match' == "SLE"  
         cap: replace region_iso2 = "ZJ"     if `match' == "SLV"  
         cap: replace region_iso2 = "Z7"     if `match' == "SMR"  
         cap: replace region_iso2 = "ZG"     if `match' == "SOM"  
         cap: replace region_iso2 = "Z7"     if `match' == "SRB"  
         cap: replace region_iso2 = "NA"     if `match' == "SSA"  
         cap: replace region_iso2 = "ZG"     if `match' == "SSD"  
         cap: replace region_iso2 = "NA"     if `match' == "SSF"  
         cap: replace region_iso2 = "NA"     if `match' == "SST"  
         cap: replace region_iso2 = "ZG"     if `match' == "STP"  
         cap: replace region_iso2 = "ZJ"     if `match' == "SUR"  
         cap: replace region_iso2 = "Z7"     if `match' == "SVK"  
         cap: replace region_iso2 = "Z7"     if `match' == "SVN"  
         cap: replace region_iso2 = "Z7"     if `match' == "SWE"  
         cap: replace region_iso2 = "ZG"     if `match' == "SWZ"  
         cap: replace region_iso2 = "ZJ"     if `match' == "SXM"  
         cap: replace region_iso2 = "NA"     if `match' == "SXZ"  
         cap: replace region_iso2 = "ZG"     if `match' == "SYC"  
         cap: replace region_iso2 = "ZQ"     if `match' == "SYR"  
         cap: replace region_iso2 = "ZJ"     if `match' == "TCA"  
         cap: replace region_iso2 = "ZG"     if `match' == "TCD"  
         cap: replace region_iso2 = "NA"     if `match' == "TEA"  
         cap: replace region_iso2 = "NA"     if `match' == "TEC"  
         cap: replace region_iso2 = "ZG"     if `match' == "TGO"  
         cap: replace region_iso2 = "Z4"     if `match' == "THA"  
         cap: replace region_iso2 = "Z7"     if `match' == "TJK"  
         cap: replace region_iso2 = "Z7"     if `match' == "TKM"  
         cap: replace region_iso2 = "NA"     if `match' == "TLA"  
         cap: replace region_iso2 = "Z4"     if `match' == "TLS"  
         cap: replace region_iso2 = "NA"     if `match' == "TMN"  
         cap: replace region_iso2 = "Z4"     if `match' == "TON"  
         cap: replace region_iso2 = "NA"     if `match' == "TSA"  
         cap: replace region_iso2 = "NA"     if `match' == "TSS"  
         cap: replace region_iso2 = "ZJ"     if `match' == "TTO"  
         cap: replace region_iso2 = "ZQ"     if `match' == "TUN"  
         cap: replace region_iso2 = "Z7"     if `match' == "TUR"  
         cap: replace region_iso2 = "Z4"     if `match' == "TUV"  
         cap: replace region_iso2 = "Z4"     if `match' == "TWN"  
         cap: replace region_iso2 = "ZG"     if `match' == "TZA"  
         cap: replace region_iso2 = "ZG"     if `match' == "UGA"  
         cap: replace region_iso2 = "Z7"     if `match' == "UKR"  
         cap: replace region_iso2 = "NA"     if `match' == "UMC"  
         cap: replace region_iso2 = "ZJ"     if `match' == "URY"  
         cap: replace region_iso2 = "XU"     if `match' == "USA"  
         cap: replace region_iso2 = "Z7"     if `match' == "UZB"  
         cap: replace region_iso2 = "ZJ"     if `match' == "VCT"  
         cap: replace region_iso2 = "ZJ"     if `match' == "VEN"  
         cap: replace region_iso2 = "ZJ"     if `match' == "VGB"  
         cap: replace region_iso2 = "ZJ"     if `match' == "VIR"  
         cap: replace region_iso2 = "Z4"     if `match' == "VNM"  
         cap: replace region_iso2 = "Z4"     if `match' == "VUT"  
         cap: replace region_iso2 = "NA"     if `match' == "WLD"  
         cap: replace region_iso2 = "Z4"     if `match' == "WSM"  
         cap: replace region_iso2 = "Z7"     if `match' == "XKX"  
         cap: replace region_iso2 = "NA"     if `match' == "XZN"  
         cap: replace region_iso2 = "ZQ"     if `match' == "YEM"  
         cap: replace region_iso2 = "ZG"     if `match' == "ZAF"  
         cap: replace region_iso2 = "ZG"     if `match' == "ZMB"  
         cap: replace region_iso2 = "ZG"     if `match' == "ZWE"  
  
******************  Lable: region_iso2 ******************
  
     lab var region_iso2                 "Region Code (ISO 2 digits)" 
 }        
  
 ****************************************************** 
  
 ******************  Values: regionname ****************** 
  
 qui if ("`regionname'" == "regionname") {      
  
         cap: gen regionname = ""  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "ABW"  
         cap: replace regionname = "South Asia"     if `match' == "AFG"  
         cap: replace regionname = "Aggregates"     if `match' == "AFR"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "AGO"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "ALB"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "AND"  
         cap: replace regionname = "Aggregates"     if `match' == "ANR"  
         cap: replace regionname = "Aggregates"     if `match' == "ARB"  
         cap: replace regionname = "Middle East and North Africa"     if `match' == "ARE"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "ARG"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "ARM"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "ASM"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "ATG"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "AUS"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "AUT"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "AZE"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "BDI"  
         cap: replace regionname = "Aggregates"     if `match' == "BEA"  
         cap: replace regionname = "Aggregates"     if `match' == "BEC"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "BEL"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "BEN"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "BFA"  
         cap: replace regionname = "South Asia"     if `match' == "BGD"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "BGR"  
         cap: replace regionname = "Aggregates"     if `match' == "BHI"  
         cap: replace regionname = "Middle East and North Africa"     if `match' == "BHR"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "BHS"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "BIH"  
         cap: replace regionname = "Aggregates"     if `match' == "BLA"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "BLR"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "BLZ"  
         cap: replace regionname = "Aggregates"     if `match' == "BMN"  
         cap: replace regionname = "North America"     if `match' == "BMU"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "BOL"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "BRA"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "BRB"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "BRN"  
         cap: replace regionname = "Aggregates"     if `match' == "BSS"  
         cap: replace regionname = "South Asia"     if `match' == "BTN"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "BWA"  
         cap: replace regionname = "Aggregates"     if `match' == "CAA"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "CAF"  
         cap: replace regionname = "North America"     if `match' == "CAN"  
         cap: replace regionname = "Aggregates"     if `match' == "CEA"  
         cap: replace regionname = "Aggregates"     if `match' == "CEB"  
         cap: replace regionname = "Aggregates"     if `match' == "CEU"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "CHE"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "CHI"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "CHL"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "CHN"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "CIV"  
         cap: replace regionname = "Aggregates"     if `match' == "CLA"  
         cap: replace regionname = "Aggregates"     if `match' == "CME"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "CMR"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "COD"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "COG"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "COL"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "COM"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "CPV"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "CRI"  
         cap: replace regionname = "Aggregates"     if `match' == "CSA"  
         cap: replace regionname = "Aggregates"     if `match' == "CSS"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "CUB"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "CUW"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "CYM"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "CYP"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "CZE"  
         cap: replace regionname = "Aggregates"     if `match' == "DEA"  
         cap: replace regionname = "Aggregates"     if `match' == "DEC"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "DEU"  
         cap: replace regionname = "Aggregates"     if `match' == "DFS"  
         cap: replace regionname = "Middle East and North Africa"     if `match' == "DJI"  
         cap: replace regionname = "Aggregates"     if `match' == "DLA"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "DMA"  
         cap: replace regionname = "Aggregates"     if `match' == "DMN"  
         cap: replace regionname = "Aggregates"     if `match' == "DNF"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "DNK"  
         cap: replace regionname = "Aggregates"     if `match' == "DNS"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "DOM"  
         cap: replace regionname = "Aggregates"     if `match' == "DSA"  
         cap: replace regionname = "Aggregates"     if `match' == "DSF"  
         cap: replace regionname = "Aggregates"     if `match' == "DSS"  
         cap: replace regionname = "Aggregates"     if `match' == "DXS"  
         cap: replace regionname = "Middle East and North Africa"     if `match' == "DZA"  
         cap: replace regionname = "Aggregates"     if `match' == "EAP"  
         cap: replace regionname = "Aggregates"     if `match' == "EAR"  
         cap: replace regionname = "Aggregates"     if `match' == "EAS"  
         cap: replace regionname = "Aggregates"     if `match' == "ECA"  
         cap: replace regionname = "Aggregates"     if `match' == "ECS"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "ECU"  
         cap: replace regionname = "Middle East and North Africa"     if `match' == "EGY"  
         cap: replace regionname = "Aggregates"     if `match' == "EMU"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "ERI"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "ESP"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "EST"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "ETH"  
         cap: replace regionname = "Aggregates"     if `match' == "EUU"  
         cap: replace regionname = "Aggregates"     if `match' == "FCS"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "FIN"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "FJI"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "FRA"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "FRO"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "FSM"  
         cap: replace regionname = "Aggregates"     if `match' == "FXS"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "GAB"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "GBR"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "GEO"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "GHA"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "GIB"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "GIN"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "GMB"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "GNB"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "GNQ"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "GRC"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "GRD"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "GRL"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "GTM"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "GUM"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "GUY"  
         cap: replace regionname = "Aggregates"     if `match' == "HIC"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "HKG"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "HND"  
         cap: replace regionname = "Aggregates"     if `match' == "HPC"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "HRV"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "HTI"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "HUN"  
         cap: replace regionname = "Aggregates"     if `match' == "IBB"  
         cap: replace regionname = "Aggregates"     if `match' == "IBD"  
         cap: replace regionname = "Aggregates"     if `match' == "IBT"  
         cap: replace regionname = "Aggregates"     if `match' == "IDA"  
         cap: replace regionname = "Aggregates"     if `match' == "IDB"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "IDN"  
         cap: replace regionname = "Aggregates"     if `match' == "IDX"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "IMN"  
         cap: replace regionname = "South Asia"     if `match' == "IND"  
         cap: replace regionname = "Aggregates"     if `match' == "INX"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "IRL"  
         cap: replace regionname = "Middle East and North Africa"     if `match' == "IRN"  
         cap: replace regionname = "Middle East and North Africa"     if `match' == "IRQ"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "ISL"  
         cap: replace regionname = "Middle East and North Africa"     if `match' == "ISR"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "ITA"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "JAM"  
         cap: replace regionname = "Middle East and North Africa"     if `match' == "JOR"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "JPN"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "KAZ"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "KEN"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "KGZ"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "KHM"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "KIR"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "KNA"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "KOR"  
         cap: replace regionname = "Middle East and North Africa"     if `match' == "KWT"  
         cap: replace regionname = "Aggregates"     if `match' == "LAC"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "LAO"  
         cap: replace regionname = "Middle East and North Africa"     if `match' == "LBN"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "LBR"  
         cap: replace regionname = "Middle East and North Africa"     if `match' == "LBY"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "LCA"  
         cap: replace regionname = "Aggregates"     if `match' == "LCN"  
         cap: replace regionname = "Aggregates"     if `match' == "LCR"  
         cap: replace regionname = "Aggregates"     if `match' == "LDC"  
         cap: replace regionname = "Aggregates"     if `match' == "LIC"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "LIE"  
         cap: replace regionname = "South Asia"     if `match' == "LKA"  
         cap: replace regionname = "Aggregates"     if `match' == "LMC"  
         cap: replace regionname = "Aggregates"     if `match' == "LMY"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "LSO"  
         cap: replace regionname = "Aggregates"     if `match' == "LTE"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "LTU"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "LUX"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "LVA"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "MAC"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "MAF"  
         cap: replace regionname = "Middle East and North Africa"     if `match' == "MAR"  
         cap: replace regionname = "Aggregates"     if `match' == "MCA"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "MCO"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "MDA"  
         cap: replace regionname = "Aggregates"     if `match' == "MDE"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "MDG"  
         cap: replace regionname = "South Asia"     if `match' == "MDV"  
         cap: replace regionname = "Aggregates"     if `match' == "MEA"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "MEX"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "MHL"  
         cap: replace regionname = "Aggregates"     if `match' == "MIC"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "MKD"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "MLI"  
         cap: replace regionname = "Middle East and North Africa"     if `match' == "MLT"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "MMR"  
         cap: replace regionname = "Aggregates"     if `match' == "MNA"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "MNE"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "MNG"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "MNP"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "MOZ"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "MRT"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "MUS"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "MWI"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "MYS"  
         cap: replace regionname = "Aggregates"     if `match' == "NAC"  
         cap: replace regionname = "Aggregates"     if `match' == "NAF"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "NAM"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "NCL"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "NER"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "NGA"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "NIC"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "NLD"  
         cap: replace regionname = "Aggregates"     if `match' == "NLS"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "NOR"  
         cap: replace regionname = "South Asia"     if `match' == "NPL"  
         cap: replace regionname = "Aggregates"     if `match' == "NRS"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "NRU"  
         cap: replace regionname = "Aggregates"     if `match' == "NXS"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "NZL"  
         cap: replace regionname = "Aggregates"     if `match' == "OED"  
         cap: replace regionname = "Middle East and North Africa"     if `match' == "OMN"  
         cap: replace regionname = "Aggregates"     if `match' == "OSS"  
         cap: replace regionname = "South Asia"     if `match' == "PAK"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "PAN"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "PER"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "PHL"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "PLW"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "PNG"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "POL"  
         cap: replace regionname = "Aggregates"     if `match' == "PRE"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "PRI"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "PRK"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "PRT"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "PRY"  
         cap: replace regionname = "Middle East and North Africa"     if `match' == "PSE"  
         cap: replace regionname = "Aggregates"     if `match' == "PSS"  
         cap: replace regionname = "Aggregates"     if `match' == "PST"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "PYF"  
         cap: replace regionname = "Middle East and North Africa"     if `match' == "QAT"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "ROU"  
         cap: replace regionname = "Aggregates"     if `match' == "RRS"  
         cap: replace regionname = "Aggregates"     if `match' == "RSO"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "RUS"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "RWA"  
         cap: replace regionname = "Aggregates"     if `match' == "SAS"  
         cap: replace regionname = "Middle East and North Africa"     if `match' == "SAU"  
         cap: replace regionname = "Aggregates"     if `match' == "SCE"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "SDN"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "SEN"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "SGP"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "SLB"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "SLE"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "SLV"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "SMR"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "SOM"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "SRB"  
         cap: replace regionname = "Aggregates"     if `match' == "SSA"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "SSD"  
         cap: replace regionname = "Aggregates"     if `match' == "SSF"  
         cap: replace regionname = "Aggregates"     if `match' == "SST"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "STP"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "SUR"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "SVK"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "SVN"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "SWE"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "SWZ"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "SXM"  
         cap: replace regionname = "Aggregates"     if `match' == "SXZ"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "SYC"  
         cap: replace regionname = "Middle East and North Africa"     if `match' == "SYR"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "TCA"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "TCD"  
         cap: replace regionname = "Aggregates"     if `match' == "TEA"  
         cap: replace regionname = "Aggregates"     if `match' == "TEC"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "TGO"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "THA"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "TJK"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "TKM"  
         cap: replace regionname = "Aggregates"     if `match' == "TLA"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "TLS"  
         cap: replace regionname = "Aggregates"     if `match' == "TMN"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "TON"  
         cap: replace regionname = "Aggregates"     if `match' == "TSA"  
         cap: replace regionname = "Aggregates"     if `match' == "TSS"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "TTO"  
         cap: replace regionname = "Middle East and North Africa"     if `match' == "TUN"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "TUR"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "TUV"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "TWN"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "TZA"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "UGA"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "UKR"  
         cap: replace regionname = "Aggregates"     if `match' == "UMC"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "URY"  
         cap: replace regionname = "North America"     if `match' == "USA"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "UZB"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "VCT"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "VEN"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "VGB"  
         cap: replace regionname = "Latin America and Caribbean"     if `match' == "VIR"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "VNM"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "VUT"  
         cap: replace regionname = "Aggregates"     if `match' == "WLD"  
         cap: replace regionname = "East Asia and Pacific"     if `match' == "WSM"  
         cap: replace regionname = "Europe and Central Asia"     if `match' == "XKX"  
         cap: replace regionname = "Aggregates"     if `match' == "XZN"  
         cap: replace regionname = "Middle East and North Africa"     if `match' == "YEM"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "ZAF"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "ZMB"  
         cap: replace regionname = "Sub-Saharan Africa"     if `match' == "ZWE"  
  
******************  Lable: regionname ******************
  
     lab var regionname          "Region Name" 
 }        
  
 ****************************************************** 
  
 end 
